[wp-trac] [WordPress Trac] #50616: Image cropping API returns on wrong image.
WordPress Trac
noreply at wordpress.org
Wed Jul 8 22:37:37 UTC 2020
#50616: Image cropping API returns on wrong image.
-------------------------------------------+-----------------------
Reporter: spacedmonkey | Owner: (none)
Type: defect (bug) | Status: new
Priority: high | Milestone: 5.5
Component: Media | Version: trunk
Severity: major | Resolution:
Keywords: needs-patch reporter-feedback | Focuses: rest-api
-------------------------------------------+-----------------------
Changes (by azaozz):
* keywords: needs-patch => needs-patch reporter-feedback
* priority: normal => high
Comment:
Seems I'm missing something. What (UI) do you use to crop the images? Not
sure anything in core appends `-cropped` to file names. When using the
`wp_crop_image()` standalone function it prepends `cropped-` before the
name.
Tried reproducing with the new image editing from the block editor and it
appears to be working correctly. The edited images were named `unsplash-
blah-edited.jpg`, `unsplash-blah-edited-1.jpg`, etc.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50616#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list