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

How to get tiles into stream? #474

Closed
pzien opened this issue Jun 23, 2016 · 5 comments
Closed

How to get tiles into stream? #474

pzien opened this issue Jun 23, 2016 · 5 comments
Labels

Comments

@pzien
Copy link

pzien commented Jun 23, 2016

tile() method seems to return original image and dzi files and folder (or the zip file) seem to be a side effect of the call. How can I get the tiles without writing them to disk?
It would be nice to use it like that:

var transformer = sharp().tile();
readableStream.pipe(transformer).pipe(writableStream);

to get tiles into writableStream.

@lovell
Copy link
Owner

lovell commented Jun 23, 2016

Hello, libvips only supports writing image pyramid tiles to disk.

I checked the relevant docs and they currently say "You can also use the file extension .zip or .szi to write to a ZIP container instead of the filesystem." This is confusing as the filesystem is still involved with ZIP output, sorry about that, I'll update this to be more explicit.

@pzien
Copy link
Author

pzien commented Jun 23, 2016

That's a pity... Thanks for a quick response!

@lovell
Copy link
Owner

lovell commented Jun 26, 2016

Commit 4b98dbb hopefully removes some of the ambiguity from the docs - thanks for bringing this to my attention!

@lovell lovell closed this as completed Jun 26, 2016
@liokm
Copy link

liokm commented Jun 3, 2020

@lovell Does the situation change? I want to use Sharp in AWS Lambda to generate tiles from image around several GBs and upload to S3, but either /tmp (512MB at max) or memory (3GB at max) is limited.

@lovell
Copy link
Owner

lovell commented Jun 3, 2020

Yes, please see #2238

Repository owner locked and limited conversation to collaborators Jun 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants