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

WordPress Trac noreply at wordpress.org
Tue Nov 20 03:03:32 UTC 2012


#22512: WP_Image_Editor - image_resize_dimensions called twice, cropping position
--------------------------+------------------------------
 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:2 scribu]:
 > > after that if we will want a new position like center or bottom, or
 right/left we should delete the old cropped image before cropping the new
 one.
 >
 > How is that different from before?

 Example we have an image with 800px height and 400px width, we will crop
 the image, and the default crop will be in the center 400x400px (image-
 400x400.png), but if we will want to crop from the top to the center with
 the same 400x400? we should delete the image before cropping a new one. It
 a nice idea to add position text in the file name: image-400x400-top.png
 (timthumb had these options to use image position for cropping, that's why
 it is so popular plugin)

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


More information about the wp-trac mailing list