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

WordPress Trac noreply at wordpress.org
Thu Jan 29 11:55:17 UTC 2026


#28474: WordPress destroys animation in animated GIF when it resizes
-----------------------------------------+-----------------------------
 Reporter:  archon810                    |       Owner:  (none)
     Type:  defect (bug)                 |      Status:  assigned
 Priority:  normal                       |   Milestone:  Future Release
Component:  Media                        |     Version:  3.9.1
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch changes-requested  |     Focuses:
-----------------------------------------+-----------------------------
Changes (by ozgursar):

 * keywords:  has-patch needs-testing needs-refresh => has-patch changes-
     requested


Comment:

 == Patch Testing Report

 Patch Tested:
 https://core.trac.wordpress.org/attachment/ticket/28474/28474.2.diff

 === Environment
 - WordPress: 7.0-alpha-61215-src
 - PHP: 8.2.29
 - Server: nginx/1.29.4
 - Database: mysqli (Server: 8.4.7 / Client: mysqlnd 8.2.29)
 - Browser: Opera
 - OS: macOS
 - Theme: Twenty Twenty-One 2.7
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.1

 === Steps taken
 1. Add an animated GIF image to media
 2. Confirm that it's animating before resize
 3. Select the image in Media
 4. Click Edit Image and then click Scale
 5. Change sizes to a smaller size (E.g. 250x250 to 200x200) and click
 Scale
 6. Click the resized image in the Media
 7. Confirm that it's not animating any more
 8. Apply the patch and do the scale edit on the image. Check if it fixes.
 9. ❌ Patch is failing.

 === Expected result
 - We are expecting to see the animated GIF image stays animated after
 resizing.

 === Support Content
 - I can confirm that my WordPress installation has Imagick library
 available.

 [[Image(https://i.imgur.com/zdZiRNr.png)]]

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


More information about the wp-trac mailing list