Skip to content

Why does the thumbnail method need the path? #116

Closed Answered by lopcode
StefanOltmann asked this question in Q&A
Discussion options

You must be logged in to vote

Never mind, I see what you mean, that does look weird! The answer is you don't have to pass the path, it's an oddity caused by the automatic code generation - ideally that method would be static like VImage.thumbnail(<path>), but it currently isn't. libvips offers thumbnailImage as an operation on an existing image, which makes more sense.

I've updated the README and sample here to use the thumbnailImage operation instead: #117

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@lopcode
Comment options

Answer selected by lopcode
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants