Skip to content

extend extend arguments #288

@bennetgallein

Description

@bennetgallein

Describe the feature

The https://sharp.pixelplumbing.com/api-resize/#extend extend function supports 2 more parameters, extendWith and background.

Especially background would be nice to have, since it seems to fallback to #000, even tho the code uses context.background but that cannot be set from a URL(?)

_ipx/extend_10_20_10_20/assets/images/logo-light.png should be also be possible as _ipx/extend_10_20_10_20_0_fff/assets/images/logo-light.png.

According to the docs it uses color (https://www.npmjs.com/package/color) to parse the color, so it's fairly free

Additional information

  • Would you be willing to help implement this feature?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions