WordPress.org

Make WordPress Core

Opened 8 months ago

Last modified 7 months ago

#47091 new enhancement

REST get wp/v2/media sizes to include add_image_size()

Reported by: shaneyu Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: rest-api Cc:
PR Number:

Description

Media returned from the API returns as sizes attribute.

These sizes are only the default sizes from wordpress. Sizes added via add_image_size() are not available.

This would be a great feature for wordpress, allowing users to upload an image once, do all the cropping there, and insert that image in the ways that they want through gutenberg. The current experience is broken up due to the need to do production work outside of gutenberg.

Change History (2)

This ticket was mentioned in Slack in #core-media by antpb. View the logs.


7 months ago

#2 @SergeyBiryukov
7 months ago

  • Focuses rest-api added
Note: See TracTickets for help on using tickets.