Skip to content

Ability to provide options to Sharp operations #207

Description

@jameswragg

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions