Skip to content

Add support for sharpResizeOptions - #340

Open
lastguru-net wants to merge 7 commits into
11ty:mainfrom
lastguru-net:beru/sharp-resize-options
Open

lastguru-net wants to merge 7 commits into
11ty:mainfrom
lastguru-net:beru/sharp-resize-options

Conversation

@lastguru-net

Copy link
Copy Markdown
Contributor

Adds support for passing Sharp resize options. Notably, since Sharp now supports "Magic Kernel Sharp" downsizing kernel, that is more computationally efficient than the default Lanczos-3 kernel, it may be beneficial to be able to choose the algorithm.

This is a followup PR for reverted #322:

  • backwards-compatible hash filenames (if the new option is not used, hashes remain the same)
  • added appropriate tests, all tests pass

@beru-ant-king
beru-ant-king force-pushed the beru/sharp-resize-options branch from f4c5992 to 14baf58 Compare August 24, 2026 09:37
@lastguru-net

Copy link
Copy Markdown
Contributor Author

@zachleat, i have rebased the PR to the current main. should be good enough?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants