kaishin / Gifu

High-performance animated GIF support for iOS in Swift
Other
3.09k stars 279 forks source link

In the app, GIF quality degraded, but correct in the Google drive with same file(size) #172

Open jams032 opened 3 years ago

jams032 commented 3 years ago

Hi, first of all, thank you so much for the nice library implementation in iOS. I was using this in my iOS app. Everything works fine except the quality of the GIF.

I downloaded the GIF with the same size from the server, saved it to the app, and display it as well. But the problem is, when it shows in the app, the quality is degraded a lot. Same quality issue found in iMac when I open the GIF. Means iOS, iMac showing it in the same manner.

But fortunately, the google drive file browser shows the incorrect quality of GIF.

I am thinking it is something inside the library. Check the text in the GIF in both parts (left, right), text has been intrinsiced.

Could you please check it and help somehow? Screenshot 2021-03-15 at 1 44 26 PM

File URL: https://file.io/k90whmWaWBf8

paulfreeman commented 2 years ago

I notice that your gif in the sample to the right (in your app) is presented with a different, scaled, aspect ratio. Could this problem be due to how you are scaling the presented gif? Does this happen when an image is presented at the same aspect ratio and without scaling, as GoogleDrive appears to be doing?