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

Add support for sharpResizeOptions#340
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

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.

1 participant