I am using a content editor where i inserted gif image in my content. Animated gif works well when in editor mode but when content goes to Glocal mode(Published mode), animatino does not work. I use TinyMce editor V1.
How you are rendering the "GIF" on the page. Can you please post the code here. It might be possible that is not creating the image url correctly.
Are you rendering this using below code?
<img src="@Url.ContentUrl(Model.MobileImage)" />
And if you are using it in the ContentReference then render it using
@Html.PropertyFor(m => m.MobileImage)
The issue seems here is with the allowed Image extensions, in you Image media, please check if gif is allowed.
[MediaDescriptor(ExtensionString = "jpg,jpeg,jpe,ico,gif,bmp,png")]
So, if its not in ExtensionString and still you drag it into your TinyMCE, then it changes the extension to something else like jpg or png (from allowed one) and then it don't work as expected.
Please let me know if it helps.
Can you add more details like, browser and it's version, episerver and Tinymce version. have you tried different gif images.Your extension (MediaDescriptor(ExtensionString)) string details and your code that how you are rendering the image, for example
<img src="@Model.Url" alt="@Model.Name" title="@Model.Copyright" class="image-file">
I may be asking a silly question here, Is the .gif being used as a background image of an element?
Hi Vinu, I think I found the issue. The param "?w=" or whatever used for image resizing aren't supported with gif. If you remove that parameter for gif image, that should work. I tried that and it worked for me.