Skip to content

Constructor options #1

Description

@fluxxus

Hey, your Sharp wrapper is a life saver!

I have a quick one, please. Maybe I am missing something obvious, but what is the preferred way to pass options to constructor?

This works, but I am modifying your core files so that is no good :))

 // Initialize sharp with input file
 let image = sharp(file, { density: 300 });

Thx

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions