Skip to content

Verify all image processing settings available via REST API #74361

Closed

Description

@adamsilverstein

What problem does this address?

Extend the media REST API to provide client-side processing configuration including available image sizes, quality settings, and feature flags. In the current media experiment, these are passed as editor settings, this needs to be switched to the rest api.

See this comment: #64278 (comment)

Acceptance Criteria:

  • Image sizes configuration exposed in REST API
  • Big image threshold value available in REST API
  • Supported mime types list provided in REST API
  • Output format mapping preferences included in REST API
  • All client side media configuration data loaded from REST API instead of editor settings.

Activity

  1. added
    [Type] Enhancement
    on Jan 5, 2026
  2. added
    [Feature] Client Side Media
    on Jan 5, 2026
  3. adamsilverstein commented on Jan 12, 2026

    @adamsilverstein
    MemberAuthor

    This appears to be in place already:

    function gutenberg_media_processing_filter_rest_index( WP_REST_Response $response ) {
    . cc: @swissspidy

    I noticed only one item missing- output mapping (eg. the results of image_editor_output_format). Additionally, I need to verify these are loading correctly from the REST API.

  4. swissspidy commented on Jan 12, 2026

    @swissspidy
    Member

    I did the output mapping in the media-experiments plugin, so should be able to copy it from there:

    https://github.com/swissspidy/media-experiments/blob/dc2267dde0984554e6de1e3ce4bf10310b8908a0/inc/functions.php#L675-L725

    There are tests as well to verify they work correctly.

  5. adamsilverstein commented on Jan 12, 2026

    @adamsilverstein
    MemberAuthor

    Great, thanks @swissspidy. I'll bring that over along with the tests which I am trying to add as I go.

  6. added
    [Status] In Progress
    on Jan 23, 2026
  7. changed the title [-]Add image processing settings to media REST API[/-] [+]Add image processing settings via REST API[/+] on Jan 24, 2026
  8. moved this from 🏗️ In Progress to 🔎 Needs Review in WordPress 7.0 Editor Taskson Jan 24, 2026
  9. changed the title [-]Add image processing settings via REST API[/-] [+]Verify all image processing settings available via REST API[/+] on Feb 5, 2026
  10. adamsilverstein commented on Feb 5, 2026

    @adamsilverstein
    MemberAuthor
  11. moved this from 🔎 Needs Review to 🏗️ In Progress in WordPress 7.0 Editor Taskson Feb 5, 2026
  12. adamsilverstein commented on Feb 24, 2026

    @adamsilverstein
    MemberAuthor

    Closing as already fixed

  13. moved this from 🏗️ In Progress to ✅ Done in WordPress 7.0 Editor Taskson Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

[Feature] Client Side Media[Status] In Progress[Type] Enhancement

Type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions