[wp-trac] [WordPress Trac] #23274: Use image crop on specific custom size

WordPress Trac noreply at wordpress.org
Wed Jan 23 15:58:17 UTC 2013


#23274: Use image crop on specific custom size
-----------------------------+-----------------------------
 Reporter:  helgatheviking   |       Type:  feature request
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  General
  Version:                   |   Severity:  normal
 Keywords:                   |
-----------------------------+-----------------------------
 I think you should be able to crop your custom image sizes from the media
 editor.  Right now you you only have 3 choices, "thumbnail", "all except
 thumbnail" which I think is pretty limiting.  If you added a hook in there
 plugin devs could add custom sizes, or perhaps even core could have a
 foreach loop for all the size.  The handling of the individual resize
 should then be pretty similar to what happens when only the "thumbnail" is
 selected for resize.

 Also, "All image sizes" seem to also include the full size, original
 image.  I don't know if this is intentional.

 In /wp-admin/includes/image-edit.php



 {{{
         <p id="imgedit-save-target-<?php echo $post_id; ?>">
                 <strong><?php _e('Apply changes to:'); ?></strong><br />

                 <label class="imgedit-label">
                 <input type="radio" name="imgedit-target-<?php echo
 $post_id; ?>" value="all" checked="checked" />
                 <?php _e('All image sizes'); ?></label>

                 <label class="imgedit-label">
                 <input type="radio" name="imgedit-target-<?php echo
 $post_id; ?>" value="thumbnail" />
                 <?php _e('Thumbnail'); ?></label>

                 <label class="imgedit-label">
                 <input type="radio" name="imgedit-target-<?php echo
 $post_id; ?>" value="nothumb" />
                 <?php _e('All sizes except thumbnail'); ?></label>

         </p>

 }}}


 Apply changes to:

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23274>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list