[wp-trac] [WordPress Trac] #22512: WP_Image_Editor - image_resize_dimensions called twice

WordPress Trac noreply at wordpress.org
Tue Nov 20 23:46:15 UTC 2012


#22512: WP_Image_Editor - image_resize_dimensions called twice
--------------------------+------------------------------
 Reporter:  alexvorn2     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by alexvorn2):

 Replying to [comment:8 DH-Shredder]:
 How do you check if the image you want to resize is already resized?
 I use image_resize_dimensions to calculate and get the dimensions... I
 don't think there is other solution.
 Or else the image will just will resize every time you load the code.

 My purpose of creating this ticked is to reduce the load of the script
 because the function is called twice, to improve just a little.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22512#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list