[wp-trac] [WordPress Trac] #40370: add_image_sizes does not create the "crop position" versions of the image

WordPress Trac noreply at wordpress.org
Sun Jun 30 21:35:09 UTC 2019


#40370: add_image_sizes does not create the "crop position" versions of the image
-------------------------------------------------+-------------------------
 Reporter:  piejesus                             |       Owner:  (none)
     Type:  enhancement                          |      Status:  reopened
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Media                                |     Version:  2.9
 Severity:  normal                               |  Resolution:
 Keywords:  needs-unit-tests good-first-bug      |     Focuses:
  has-patch 2nd-opinion                          |
-------------------------------------------------+-------------------------

Comment (by peterwilsoncc):

 @themattroyal Yes, you are correct; this is a valid bug.

 @subhankara `add_image_size()` allows developers to define the crop
 location on hard cropped images. Multiple images of the same size but with
 different crop locations (eg 300x300 center cropped, and 300x300 top
 cropped) produce the same file name and one crop deletes the other.

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


More information about the wp-trac mailing list