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

Make thumb streamable #194

Closed
mlegenhausen opened this issue Jul 29, 2013 · 5 comments
Closed

Make thumb streamable #194

mlegenhausen opened this issue Jul 29, 2013 · 5 comments

Comments

@mlegenhausen
Copy link

This would be nice for generating thumbs on demand. Getting a file stream in and write it out.

What I expected:

gm(readStream).thumb(320, 160).stream().pipe(writeStream);
@jonathanong
Copy link
Contributor

i'm considering removing this helper. is it possible for you to use native arguments instead? http://www.imagemagick.org/Usage/thumbnails/#cut

@mlegenhausen
Copy link
Author

I used scale instead and it works as expected.

@jonathanong
Copy link
Contributor

so you were able to do this without gm().thumb(), correct?

@mlegenhausen
Copy link
Author

Yes so it would be the best to remove thumb and add an example how to create thumbs instead, cause it is a common operation.

@jonathanong
Copy link
Contributor

good to know. adding it to the list of things in v2: https://github.com/aheckmann/gm/wiki/Future

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

No branches or pull requests

2 participants