[wp-trac] [WordPress Trac] #21004: add_image_size hard crop messes up image editor rendering
WordPress Trac
wp-trac at lists.automattic.com
Mon Jun 18 00:36:04 UTC 2012
#21004: add_image_size hard crop messes up image editor rendering
--------------------------+------------------------------
Reporter: geniepop | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 3.4
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: needs-patch => has-patch
* component: General => Media
Comment:
Instead of the full size, `stream_preview_image()` loads the nearest image
size that matches 400x400, apparently assuming that it will have the same
proportions as the original, which is not the case here.
We could probably remove the size parameter to make it always load the
original.
The resulting preview image would still be properly scaled to 400x400 by
`_image_get_preview_ratio()`:
http://core.trac.wordpress.org/browser/tags/3.4/wp-admin/includes/image-
edit.php#L364
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21004#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list