Skip to content

Conversation

@karlvr
Copy link
Contributor

@karlvr karlvr commented Jul 8, 2022

I have added a capability to add additional options to the thumbnail methods. I've done this by creating a separate options object, in a new package, so this is a bit of an opinionated suggestion for how to tackle the various additional options on other vips functions.

It isn't finished, as I'm not sure how to build the function arguments dynamically (so we can omit those that aren't specified). I need to achieve that to implement support for import and export profiles, and I'd like to apply that to scale and crop etc so if they're not specified in the options, they're not specified to vips, letting vips apply the defaults itself.

I will also add documentation, if you generally like / agree with this approach!

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

Successfully merging this pull request may close these issues.

1 participant