[wp-trac] [WordPress Trac] #52495: Hard cropped images do not crop specified dimension, causing lack of adaptive images
WordPress Trac
noreply at wordpress.org
Wed Jun 8 15:51:48 UTC 2022
#52495: Hard cropped images do not crop specified dimension, causing lack of
adaptive images
--------------------------+-----------------------------
Reporter: larssg | Owner: joedolson
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: Future Release
Component: Media | Version: 5.6.1
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+-----------------------------
Comment (by nosilver4u):
@larssg It seems you might achieve better results if you disabled the
'crop' flag on those sizes, so that they all maintain the aspect ratio of
the 960x600 image.
Do be careful of the word 'scale' as it typically implies the opposite of
'crop', which is the default WP behavior for registered sizes, excepting
the 150x150 thumb.
However, I see what you're saying where you'd want WP to upscale the
960x600 image to 1000x625 so that it can then be cropped to 1000x500. In
such a case, you'd get better quality results if you upload an original at
1000x600 vs. what WP can achieve via upscaling. Those upscaled images
almost always look very poor quality, and is something I would avoid at
all costs.
And if you don't have a larger original, it's likely best for you to
upscale it ahead of time with PS or GIMP, as changing the current/default
behavior would be a bit risky.
FYI, if the 'crop' flag were disabled on those sizes you described, a
960x600 upload would result in the following sizes: 800x500, 600x375, and
400x250, which will all work nicely for a responsive layout.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52495#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list