[wp-trac] [WordPress Trac] #18799: Image editor crops specific image widths
WordPress Trac
wp-trac at lists.automattic.com
Wed Sep 28 07:32:19 UTC 2011
#18799: Image editor crops specific image widths
-------------------------------------+------------------------------
Reporter: squirreling | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 3.2.1
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+------------------------------
Changes (by solarissmoke):
* keywords: => has-patch needs-testing
Comment:
I reckon the problem is that `image_get_intermediate_size()` doesn't check
the original image before checking for other auto-generated sizes. This
means that whenever the width/height of the original image exactly equals
the width/height supplied to the function, you risk getting something
other than the original itself. See [attachment:18799.diff patch].
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18799#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list