Open teddybradford opened 3 years ago
Hi!
Please provide a minimal reproduction showing this. Thanks!
Hi @LekoArts, I've created a reproduction repo: https://github.com/teddybradford/gatsby-image-bug-repro/ and I updated the original post for clarity and to match the repo. Let me know if you have any questions.
Hiya!
This issue has gone quiet. Spooky quiet. ๐ป
We get a lot of issues, so we currently close issues after 60 days of inactivity. Itโs been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! ๐ช๐
Not stale
Hiya!
This issue has gone quiet. Spooky quiet. ๐ป
We get a lot of issues, so we currently close issues after 60 days of inactivity. Itโs been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! ๐ช๐
Not stale
Hiya!
This issue has gone quiet. Spooky quiet. ๐ป
We get a lot of issues, so we currently close issues after 60 days of inactivity. Itโs been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! ๐ช๐
Not stale ๐
Hiya!
This issue has gone quiet. Spooky quiet. ๐ป
We get a lot of issues, so we currently close issues after 60 days of inactivity. Itโs been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! ๐ช๐
Preliminary Checks
Description
Images that get transformed with imagesharp using
fit: contain
and anaspectRatio
that causes pillarboxing should add the pillarboxes before resizing the image for each breakpoint. Otherwise, we end up losing higher resolution images due to the order of operations.Steps to Reproduce
Expected Result
As an example, for a portrait image with a resolution of 800x1000, and image breakpoints of
[600, 900, 1200]
, the resulting responsive images should be:We can get these resolutions if instead of sizing down first to conform to the breakpoint and aspect ratio, the pillarboxes were added to to the sides of the image first, and then the image resized (e.g. the 800x1000 image gets cropped to be 2000x1000, and then resized to each breakpoint after that).
Actual Result
Instead, the resulting responsive images are:
Environment