[wp-trac] [WordPress Trac] #57370: WP_Image_Editor_Imagick creates unexpected 'thumbnail' image size when original image is 150x150
WordPress Trac
noreply at wordpress.org
Tue Feb 7 17:22:56 UTC 2023
#57370: WP_Image_Editor_Imagick creates unexpected 'thumbnail' image size when
original image is 150x150
--------------------------------------+------------------------------
Reporter: danielbachhuber | Owner: danielbachhuber
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.2
Component: Media | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Changes (by danielbachhuber):
* owner: (none) => danielbachhuber
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"55278" 55278]:
{{{
#!CommitTicketReference repository="" revision="55278"
Media: Bail early if image is already the requested size.
In `WP_Image_Editor_Imagick`, bail early in `make_subsize()` if the image
is already the requested size. Previously, `make_subsize()` would create
another copy of the file. `WP_Image_Editor_GD` doesn't have the same
problem.
Props wojtekn, danielbachhuber.
Fixes #57370.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57370#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list