Skip to content

Gutenberg-Based Media Editor: Add Media Level Focal Point Selector #75221

@eric-michel

Description

@eric-michel

What problem does this address?

Media library images can be output in a variety of different ways, including templates, custom blocks, shortcodes, etc. It would be really helpful to be able to set a global focal point (similar to the one found in the Cover block) for a given image.

This focal point would be output in the bevy of functions that output images, such as wp_get_attachment_image for use by site, theme, and plugin developers as-needed (usually when images are set to object-fit: cover; or as a background). The global focal point could then be the default when the image is used in a Cover block and overridden on a block-by-block basis.

What is your proposed solution?

We're currently using this excellent plugin to implement this functionality in our sites, and it's critical to a lot of our custom carousel and gallery ACF blocks. With @andrewserong's work on recreating the media editor in Gutenberg, now is the perfect time to fold this functionality into core.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] MediaAnything that impacts the experience of managing media[Type] EnhancementA suggestion for improvement.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions