[wp-trac] [WordPress Trac] #34384: No way of preventing image_get_intermediate_size from returning cropped image

WordPress Trac noreply at wordpress.org
Sun Jul 17 23:05:23 UTC 2016


#34384: No way of preventing image_get_intermediate_size from returning cropped
image
--------------------------------------------------+------------------------
 Reporter:  pputzer                               |       Owner:  joemcgill
     Type:  defect (bug)                          |      Status:  accepted
 Priority:  normal                                |   Milestone:  4.6
Component:  Media                                 |     Version:  3.0
 Severity:  normal                                |  Resolution:
 Keywords:  has-patch has-unit-tests 2nd-opinion  |     Focuses:
--------------------------------------------------+------------------------

Comment (by joemcgill):

 [attachment:34384.10.5.diff] is identical to [attachment:34384.9.diff]
 except I've changed the variable names in the new
 `wp_image_matches_ratio()` function to be `$source_width`,
 `$source_height`, `$target_width`, `$target_height` instead of
 `$img_a_width`, `$img_a_height`, `$img_b_width`, `$img_b_height`. I also
 simplified some inline docs in the same function.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34384#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list