Replies: 4 comments 2 replies
-
Gifs are very tricky to optimize and in most cases we found they are reduced in quality tremendously when optimized or the gif animation order would not be correct anymore. Hence why it's not supported. We even saw many cases where gifs would increase in size when optimized. |
Beta Was this translation helpful? Give feedback.
-
Can't next/image even resize gifs by default? |
Beta Was this translation helpful? Give feedback.
-
One good way to optimize GIFs is to stream them as a video. This would still more or less preserve the quality of the gif, reduce the size, and allow streaming that will be pretty much immediate rendering instead of waiting to download a 10Mb file, for example. This would be amazing to have in the |
Beta Was this translation helpful? Give feedback.
-
Sharp makes it very easy to transform animated gif's to animated webp, a widely supported format now. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature you'd like to request
At this moment Nextjs has support for automatically optimising png or jpeg images with the option to set the quility. During testing I found out that there was no support for .gif images, it will just serve the original file.
I would like to see Gifs supported with the image optimalisation tool. That includes animated gifs.
Describe the solution you'd like
A more modern standard is WebP which also supports animated images. It would be nice to be able to set the quility for each image and that it will automatically create a WebP optimized image.
Describe alternatives you've considered
Currently I use a external system on my api that transforms the images on the serverside. This is done through a third party image api.
Beta Was this translation helpful? Give feedback.
All reactions