Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
I have a gif that is 640x480 that I want to play on a 1920:1080 screen whilst maintaining aspect ratio. When I play this gif using FBpyGIF it stretches to fill the whole screen. Is there any way to play the gifs full screen whilst maintaining aspect ratio?
Here's the gif I'm using
And what it looks like in FBpyGIF (captured from a Raspberry Pi using a HDMI capture card, hence the fuzziness)
This is a cumbersome function to apply because it leaves a problem exactly where to put that smaller piece of image on the entire big framebuffer.
Which means you need
This kind of calculations should have been implemented before but since there's more efficient rust version comming, I'm not going to try to close this issue.
Additionally, this is left unsolved because you can use its nature to have many instances of background programs to create and fill those virtual windows differently, so that it seems like they're some composited window programs.