[wp-trac] [WordPress Trac] #37244: WordPress has a fallback if the cropped version of an image is smaller than the size the contributor sets it to be

WordPress Trac noreply at wordpress.org
Fri Jul 1 06:21:20 UTC 2016


#37244: WordPress has a fallback if the cropped version of an image is smaller than
the size the contributor sets it to be
--------------------------+------------------------------
 Reporter:  rasmusrim     |       Owner:  joemcgill
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  4.5.3
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by rasmusrim):

 Alright... sorry about that. I'll try to be more structured:

 1. I upload a file with the size 2560x1600 into the media library.
 2. I hard crop that file to a size of 345x332 using the in-built tool that
 WordPress has. Another version of the image with a sort of hash added to
 the file name, turns up in "uploads".
 3. I create a new page where I add that file using the size setting
 "Large" which is set to 640x400.
 4. The uncropped version of the image shows up. Probably because the
 settings for "Large" are larger than the size of the cropped version of
 the image.
 5. If I, however choose a custom size we have, which is 100x100, the
 cropped version shows up.

 WordPress going back to the uncropped image is highly unwanted behaviour,
 so I am wondering if that is a bug or a feature :)

 Replying to [comment:1 joemcgill]:
 > Hi @rasmusrim,
 >
 > Thanks for the report, and welcome to Trac. It's not clear to me from
 your description exactly what is happening here. Could you provide
 specific steps someone would follow to reproduce the issue? Thanks.

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


More information about the wp-trac mailing list