e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
318 stars 212 forks source link

file media .gif #3651

Open kreossino opened 5 years ago

kreossino commented 5 years ago

when i insert a .gif in tinymce i see only the first image and not all images of gif. the tinymce sanitize this image with [img][/img]. how can i resolve?

SimSync commented 5 years ago

Could you provide such a gif file here for testing?

berckoff commented 5 years ago

I think this should do the work, if properly understood the issue: banana

Moc commented 5 years ago

I cannot reproduce this. I used the above image as an 'external source' when adding the image using TinyMCE. The GIF displays fine, with all of its images.

The source code: [img width=365&title=Fb21b0b6852c]https://user-images.githubusercontent.com/3104702/52509437-cfd55e80-2c00-11e9-85d3-fb21b0b6852c.gif[/img]

tgtje commented 5 years ago

Tested; confirming kreassino's issue When uploaded in mediamanager the image (gif) is not active playing. Ok, when going INTO mediamanager and click preview the gif file is active !! Now posting as mediamanager insert the gif remains still. (old discussions on the internet seem to indicate through the years...with Tiny) resizing troubles make the gif's non moving. Here's an example made AFTER the prev post for external. (as visual example) ### inside Tinymce. koxo

SimSync commented 5 years ago

The problem is that when resizing the image, only the first frame will be used. Resizing an gif is not such a trivial task and requires quite some server resources. I don't think that this is something that could be done on the fly. You will in all cases loose the timing of the frames as far as I know.

tgtje commented 5 years ago

Indeed @SimSync , but in this case it is not we as users that resize, but likely the 'thumb' used in system that does it. Even manual adding the exact size will always be the first image solemly....... (hence thats why some others use specially created plugins for that case only ...)