[wp-trac] [WordPress Trac] #21810: Improve intermediate image size handling

WordPress Trac noreply at wordpress.org
Fri Mar 14 01:36:21 UTC 2014


#21810: Improve intermediate image size handling
-------------------------+-----------------------------
 Reporter:  koopersmith  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Media        |     Version:  3.5
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+-----------------------------

Comment (by tomauger):

 Some thoughts on this one:

 1. Having an intermediate image size appear as an option within the Image
 Editor UI should be opt-in. I have seen implementations with many, many
 intermediate image sizes, some of which don't need anything more than
 basic crop alignment (now supported in 3.9) and it got pretty hairy having
 them all in the Target editor group box.

 {{{
 function add_image_size( $name, $width = 0, $height = 0, $crop = false,
 $include_in_target_UI = false )
 }}}

 2. I think that when the crop is actually performed on a specific image
 size - the crop coordinates should be stored in the DB. This would allow
 us to still always display the full-size image (scaled down to fit in the
 editor as usual) but then load in the current crop as a starting point
 when a new image size is selected in the Target image editor group. This
 solves one of the big usability issues with loading the editor on, for
 example, the thumbnail version of an image included in the content editor,
 as you'll see right away the crop of the image.

 3. You should be able to decide beforehand what image size you want to
 edit (when appropriate). For example, in the Image Details view for an
 image in the Editor, you get to choose which image size you want to use
 for the embedded image. This might be a good place to allow you to select
 which of those sizes you're actually editing for. Again, the full-size
 image would be the one displayed, but the crop would default to the crop
 selected for that image size.

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


More information about the wp-trac mailing list