Skip to content

Media / Attachments REST API endpoint: update attachments controller to support flip and to customize attachment fields #71863

Description

@ramonjd

What problem does this address?

The Media Library editor allows flipping an object and also updating image metadata.

The Media / Attachments REST API /media/{$id}/edit endpoint is currently used to edit images in the block editor, but has limited capability in terms of editing functions.

What is your proposed solution?

An incremental approach is preferred here, but a first step to enhance media editor capabilities as described in
Phase 3: Collaboration > Media Library is to add this functionality, namely:

  • the ability to flip an image horizontally and vertically
  • the ability to send arguments to update the new image's caption, description, and title, post and alt_text fields.

Gutenberg PR #71861 is underway, which will be followed by a Core backport patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions