Is there a way in Magento 2 to allow for animated gifs as product images?
I can upload them to the backend without any issues, but when I view a product on the front-end it just shows them as separate images.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
While allowing it may be possible in one or another way, it only creates new edgecases which need to get handled. One example are thumbnails, the other resize.
Also you (for size reasons) probably only want the gif to be shown on the product page, not the category pages.
My suggestion is to create a complete new attribute and do the rest on the frontend template.
Another possible way would be to see if there is already some feature, which allows for video uploads to products. There a gif support would make sense because auf the similar use and requirements videos have(size, only start loading on click)
We released an extension for this recently. This adds support for GIF images in Magento 2 platform.
The extension can be found at URL: https://redchamps.com/product-animated-gif-images-magento-2-extension.html
Please note that this is a paid extension and it is developed by RedChamps and I am the founder of that.