[wp-trac] [WordPress Trac] #47713: image_get_intermediate_size does not return size if it equals original size

WordPress Trac noreply at wordpress.org
Sat Sep 5 18:18:54 UTC 2020


#47713: image_get_intermediate_size does not return size if it equals original size
----------------------------------------+-----------------------------
 Reporter:  mahnunchik                  |       Owner:  SergeyBiryukov
     Type:  defect (bug)                |      Status:  reviewing
 Priority:  normal                      |   Milestone:  Future Release
Component:  Media                       |     Version:  5.2.2
 Severity:  major                       |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+-----------------------------

Comment (by mahnunchik):

 @Mista-Flo I've tested on trunk, the same incorrect behaviour.

 According to your test it seems you are used image bigger than 500x500 for
 testing `images/test_500x500.png`.

 WP doesn't generate additional file if size is equal to original image, so
 name of produced file should be `test_500x500.png` **not**
 `test_500x500-500x500.png`.

 Please test on `jpg` file with exactly the same dimensions as requested.
 For example this image https://user-
 images.githubusercontent.com/11629607/44900132-13e43f00-ad04-11e8-86f6-fe830e462abc.jpg
 and 2000 x 1200 px dimensions.

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


More information about the wp-trac mailing list