Make WordPress Core

Opened 3 weeks ago

Closed 3 weeks ago

#61612 closed defect (bug) (duplicate)

REST API: image cropping is broken

Reported by: ellatrix's profile ellatrix Owned by:
Milestone: Priority: high
Severity: major Version: 6.6
Component: REST API Keywords:
Focuses: rest-api Cc:

Description (last modified by ellatrix)

When cropping an image in the editor, the REST API request looks correct:

{
  "src": "http://localhost:8888/gutenberg/wp-content/uploads/2024/07/image-1.webp",
  "modifiers": [
    {
      "type": "crop",
      "args": {
        "left": 26.566666666666666,
        "top": 0,
        "width": 46.86666666666667,
        "height": 100
      }
    }
  ]
}

But the REST API returns the same, uncropped image.

To double check, that it's a core bug, I've checked out the Gutenberg wp/6.5 branch, and confirmed that the bug is still present (with the 6.6 core/REST API).

Here's the filed Gutenberg issue: https://github.com/WordPress/gutenberg/issues/63319

Change History (3)

#1 @ellatrix
3 weeks ago

  • Description modified (diff)

#2 @davidbaumwald
3 weeks ago

@ellatrix Could this be related to #61514?

#3 @ellatrix
3 weeks ago

  • Milestone 6.6 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #61514.

Oh yes, I was actually still testing RC 2. Seems fixed in RC 3, great!

Note: See TracTickets for help on using tickets.