[wp-trac] [WordPress Trac] #26846: add_image_size "favoring" height instead of generating specific dimensions...

WordPress Trac noreply at wordpress.org
Thu Jan 16 03:05:48 UTC 2014


#26846: add_image_size "favoring" height instead of generating specific
dimensions...
--------------------------+-----------------------------
 Reporter:  alturic       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  3.8
 Severity:  critical      |   Keywords:
--------------------------+-----------------------------
 Ok, so in 3.7 I had: add_image_size('art-slide-med',   700, 415, true);
 and everything seemed to work fine, as in it generated an image at 700x415
 yet in 3.8 it SEEMS that if you set anything for height it completely
 bases the width of the image from that, regardless of cropping is true or
 false. Now, if I did 700, 0, true/false (doesn't matter) it uses the
 correct width and generates a random height of course.

 So I'm fairly certain this is a bug with 3.8 unless something has changed
 with the way add_image_size works?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26846>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list