Skip to content

fix: include original image size in srcset when larger than largest scale - #28

Merged
ralphjsmit merged 3 commits into
ralphjsmit:mainfrom
balazsnasz:exact-size
May 28, 2026
Merged

fix: include original image size in srcset when larger than largest scale#28
ralphjsmit merged 3 commits into
ralphjsmit:mainfrom
balazsnasz:exact-size

Conversation

@balazsnasz

Copy link
Copy Markdown
Contributor

Push exact original image size if the last scale item is much smaller (more than 50px difference between the latest srcset scale).

Serve the original image in this case to avoid regenerating the image in its original size in the cache folder.

…maller.

Serve the original image in this case to avoid regenerating the image in its original size in the cache folder.
@ralphjsmit ralphjsmit changed the title feat: Push exact original image size if the last scale item is much smaller fix: include original image size in srcset when larger than largest scale May 28, 2026
@ralphjsmit
ralphjsmit merged commit 4c72ec0 into ralphjsmit:main May 28, 2026
1 check failed
@balazsnasz
balazsnasz deleted the exact-size branch June 24, 2026 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants