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 provide options to Sharp operations #207

Open
1 task done
jameswragg opened this issue Jan 15, 2024 · 0 comments
Open
1 task done

Ability to provide options to Sharp operations #207

jameswragg opened this issue Jan 15, 2024 · 0 comments

Comments

@jameswragg
Copy link
Contributor

jameswragg commented Jan 15, 2024

Describe the feature

I've found myself wanting to use IPX to transform the image format & wanting to supply options, e.g. process an animated gif by reducing the colour count (and therefore size), which is supported by Sharp but I have no interface for supplying these arguments to modifiers.

I totally understand if Sharp output options are out of scope but spitballing here, a path API for Sharp operation options could look like this:

/f_gif[colours:16|dither:0.5|reuse:true]/buffalo.png --> .gif({ colours: 16, dither: 0.5, reuse: false })

/rotate_45[background:00ff00]/buffalo.png --> .rotate(45, { background: '00ff00' })

Additional information

  • Would you be willing to help implement this feature?
@jameswragg jameswragg changed the title Ability to provide format options Ability to provide options to Sharp operations Jan 15, 2024
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