Ask coding questions

← Back to all posts
Flask return GIF from URL
Ashenguard

I'm trying to retrieve a gif from URL and return it as the Flask response.
It's what I currently have and it is half-working.

It will return only the first frame of the gif. I searched about it but none of them was what I was looking for

Answered by CosmicBear [earned 5 cycles]
View Answer
Voters
Ashenguard
Comments
hotnewtop
CosmicBear

Could you share the repl? I think I know what the problem is but I need to fork the code to make sure.

CosmicBear

https://replit.com/@CosmicBear/SubtleRosyCubase#main.py Works for me. Maybe it's not really a gif?

Ashenguard

@CosmicBear yep you were right... after testing the URL generated based on parameters manually, I noticed the URL is returning only the first frame