| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
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.
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.
There was a problem hiding this comment.
@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.
Sorry, something went wrong.
There was a problem hiding this comment.
Great work @mitogh!
Sorry, something went wrong.
There was a problem hiding this comment.
Excellent! Left one tiny typo correction.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
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