[wp-trac] [WordPress Trac] #49995: WordPress creates unnecessary thumbnails
WordPress Trac
noreply at wordpress.org
Fri Apr 24 11:44:23 UTC 2020
#49995: WordPress creates unnecessary thumbnails
--------------------------+-----------------------------
Reporter: XXVII | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 5.4
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Hello,
I think I found a bug in WordPress 5.3 onwards, when **imagick is
installed and activated** on the server (PHP 7.3, phpinfo attached).
To reproduce the problem:
1 - in /wp-admin/options-media.php check what sizes are set (defaults are:
1024x1024, 300x300x 150x150)
2 - upload an image with the same size as one of the three, let's say I
upload this image https://via.placeholder.com/1024x1024
3 - Wordpress uploads the image and generates the following files
1024x1024.png -> original image
1024x1024-1024x1024.png -> SHOULD NOT BE CREATED
1024x1024-768x768.png -> medium_large
1024x1024-300x300.png -> medium
1024x1024-150x150.png -> thumbnail
1024x1024-1024x1024.png should not be generated, it's also bigger than the
original (3.5kB vs 6.3kB).
The same thing happens with the other sizes as long as the image size is
the same as one of the sizes set in the options.
It doesn't happen on Wordpress 5.2.x and downwards.
To solve the problem imagick must be deactivated, using GD the problem
doesn't happen.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49995>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list