[wp-trac] [WordPress Trac] #62388: If image size exists with crop and without crop, only 1 will be created,
WordPress Trac
noreply at wordpress.org
Tue Nov 12 08:41:09 UTC 2024
#62388: If image size exists with crop and without crop, only 1 will be created,
--------------------------+-----------------------------
Reporter: kkmuffme | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: major | Keywords:
Focuses: |
--------------------------+-----------------------------
Essentially https://core.trac.wordpress.org/ticket/61925 but if the same
size exists with crop true and crop false, then whatever size was added
later will overwrite a previous one, since the resulting file names are
identical.
e.g. foo-450x450.png would be created first uncropped, then cropped
resulting in only the cropped file being available.
So while the other ticket is purely an efficiency one, this is a bug since
it's unexpected that the order in which the sizes are added matters and
you could end up with cropped images when you added an uncropped size or
vice versa
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62388>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list