Skip to content

Conversation

@mitogh
Copy link
Member

@mitogh mitogh commented Apr 24, 2022

Summary

When a modern format is available to render the featured image make sure that the replacement image uses the same logic used to replace the images in the content in order to be consistent
with the rest of rendered format.

Fixes #288

Relevant technical choices

Checklist

  • PR has either [Focus] or Infrastructure label.
  • PR has a [Type] label.
  • PR has a milestone or the no milestone label.

When a modern format is available to render the featured image
make sure that the replacement image uses the same logic used
to replace the images in the content in order to be consistent
with the rest of rendered format.

Fixes #288
@mitogh mitogh added [Type] Enhancement A suggestion for improvement of an existing feature [Focus] Images labels Apr 24, 2022
@mitogh mitogh added this to the First release after 1.0.0 milestone Apr 24, 2022
@mitogh mitogh self-assigned this Apr 24, 2022
@masteradhoc
Copy link

Thanks for the PR @mitogh!

Copy link
Member

@adamsilverstein adamsilverstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, nice work!

Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mitogh Great work!

@felixarntz felixarntz changed the title Replace the featured image to a modern format Replace the featured image with WebP version when available May 2, 2022
@felixarntz felixarntz merged commit ea67f4d into trunk May 2, 2022
@felixarntz felixarntz deleted the fix/288-featured-image-in-webp branch May 2, 2022 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Enhancement A suggestion for improvement of an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Background images does not uses the *.webp version in the content if present

5 participants