classic-o / nova-media-library

Media Library for admin panel "Laravel Nova"
MIT License
157 stars 66 forks source link

Uploading animated gif seems to flatten and use only first frame #80

Closed graphem closed 2 years ago

graphem commented 3 years ago

When uploading an animated gif it seems to flatten he gif so only the first frame is then use to generate the file for some reason. Wondering if this is a bug of by default?

classic-o commented 2 years ago

Hi. yes. I did not do resize for GIF. For preview image cropped without animation. But for website you will use original image with animation.

graphem commented 2 years ago

But the issue is if I upload an animated gif, it kill my gif. Any way to avoid this? So that the animated gif remains when stored in our storage?

classic-o commented 2 years ago

Use original gif file. Destroys only resized gif images