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

thumbnail: add support for other options #135

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

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