Skip to content

Update WordPress core functions to support multiple mime types #155

@mitogh

Description

@mitogh

Feature Description

Functions such as:

  • wp_get_attachment_image_src
  • wp_get_attachment_image_srcset
  • wp_get_attachment_image_url

Should be updated in order to support an additional parameter or to update the icon parameter in some cases to behave as mime type support parameter. This parameter would allow specifying the desired mime type for an image in case we want to render the JPEG, WebP, Avif or any other available mime type for an image based on the specified image size.

This is a subsequent step on the work for:

Metadata

Metadata

Labels

Needs DiscussionAnything that needs a discussion/agreement[Plugin] Modern Image FormatsIssues for the Modern Image Formats plugin (formerly WebP Uploads)[Type] EnhancementA suggestion for improvement of an existing feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions