[wp-trac] [WordPress Trac] #28474: WordPress destroys animation in animated GIF when it resizes

WordPress Trac noreply at wordpress.org
Tue Feb 2 03:36:59 UTC 2016


#28474: WordPress destroys animation in animated GIF when it resizes
--------------------------+---------------------------
 Reporter:  archon810     |       Owner:  mikeschroder
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  4.5
Component:  Media         |     Version:  3.9.1
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+---------------------------

Comment (by azaozz):

 As far as I see pretty much all animated GIFs don't need hard resizing
 (make smaller image files). They are at the right size already, not like
 4000px X 6000px photos from a digital camera. They can be soft-resized by
 CSS or the tag width/height attributes.

 At the same time we can get hard resizing working only in Imagick leaving
 about 20-30% of the users out.

 In these terms best would be to not try to hard resize animated GIFs at
 all. Just make a thumbnail, keeping the animation if possible (like
 28474.diff). We should also exclude animated GIFs from the image editor.
 Even thinking we can start adding a flag to image meta to easily exclude
 them when adding srcset, etc.

 If we can't create animated thumbnail the users will be able to see that
 and insert the full-size image, then soft resize it when needed. We can
 also add something in screen help about that (no matter how few users look
 there).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28474#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list