FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Use `original` image to generate all additional image format sub-sizes by mitogh · Pull Request #207 · WordPress/performance · GitHub

Use original image to generate all additional image format sub-sizes - #207

Merged
felixarntz merged 13 commits into
trunkfrom
feature/204-original-images-for-webp
Mar 14, 2022
Merged

Use original image to generate all additional image format sub-sizes#207
felixarntz merged 13 commits into
trunkfrom
feature/204-original-images-for-webp

Conversation

mitogh commented Mar 7, 2022
edited
Loading

Copy link
Copy Markdown
Member

Summary

Fixes #204

Relevant technical choices

When creating all the sub-sizes for additional mime types, using the original image instead of the attached image would ensure that all additional sub-sizes have the same size as the original images.

Checklist

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

mitogh added 2 commits March 7, 2022 12:04
For all the generated sub-sizes use the original image instead
of the attached image in order to accurate replicate the same
process that WordPress uses to create each sub-size.
mitogh added [Type] Bug An existing feature is broken [Focus] Images [Plugin] Modern Image Formats Issues for the Modern Image Formats plugin (formerly WebP Uploads) labels Mar 7, 2022
mitogh added this to the 1.0.0-beta.2 milestone Mar 7, 2022
mitogh self-assigned this Mar 7, 2022
mitogh added 2 commits March 7, 2022 19:43
The removal of the `preg_replace` as is not required due we are
using the original image, and the original image does not have
a custom suffix.

felixarntz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@mitogh Mostly looks good, I left a few comments.

The one critical thing we need to add here is about considering the orientation and applying the rotation as needed, similar to how WP core does.

Comment thread modules/images/webp-uploads/load.php Outdated
Comment thread modules/images/webp-uploads/load.php Outdated
Comment thread modules/images/webp-uploads/load.php Outdated
Comment thread modules/images/webp-uploads/load.php Outdated
mitogh changed the base branch from trunk to feature/174-full-image-size March 9, 2022 00:50
mitogh requested a review from felixarntz March 9, 2022 18:47
Base automatically changed from feature/174-full-image-size to trunk March 10, 2022 01:18

felixarntz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Great work @mitogh!

adamsilverstein self-requested a review March 14, 2022 21:30

adamsilverstein left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Excellent! Left one tiny typo correction.

Co-authored-by: Adam Silverstein <adamjs@google.com>
mitogh requested a review from adamsilverstein March 14, 2022 21:41
felixarntz merged commit b082f7d into trunk Mar 14, 2022
felixarntz changed the title Use original image to generate all subsizes Use original image to generate all additional image format sub-sizes Mar 14, 2022
mitogh deleted the feature/204-original-images-for-webp branch March 14, 2022 22:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Plugin] Modern Image Formats Issues for the Modern Image Formats plugin (formerly WebP Uploads) [Type] Bug An existing feature is broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When creating additional mime types use the original image instead of attached image.

4 participants


Back | FazBrowse Home | New Git URL