Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to Specify Sharp Constructor Options #108

Open
emmercm opened this issue May 14, 2020 · 0 comments
Open

Ability to Specify Sharp Constructor Options #108

emmercm opened this issue May 14, 2020 · 0 comments

Comments

@emmercm
Copy link

emmercm commented May 14, 2020

I have an issue similar to lovell/sharp#729 where SVGs get rasterized at load and then scaling them up with the resize method greatly reduces quality.

The suggestion in that issue is to specify a high density in the constructor (docs: https://sharp.pixelplumbing.com/api-constructor), but it looks like passing the options parameter isn't supported right now:

const sharp = Sharp(image.contents)

Hoping that can get added as option to the in some way, at the same level as say src or methods, and maybe the value could either be an object or a function that returns an object, similar to args.

Thanks!

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

No branches or pull requests

1 participant