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
TIFF format to/from Buffer, requires libvips v8.5.2+ #587
Comments
Hello, TIFF output is limited to filesystem only - use something like |
I have to use the extra steps reading/writing the file (using fs module) It would be great if output methods for TIFF is expanded to buffer, too. |
This has been fixed in libvips 8.4.x - see https://github.com/jcupitt/libvips/issues/294 |
Do I have to install/build the newer libvips myself or is it shipped/built by sharp package? Edit: Apparently, an older libvips version is used: https://github.com/lovell/sharp/blob/master/package.json#L84 Besides, it would be still helpful if TIFF could be obtained as buffer for |
The next major version of sharp, v0.17.0, will be bundled with a pre-compiled libvips v8.4.x+.
You'll need to add tiffload_buffer (and tiffsave_buffer) support to libvips, then expose the feature in sharp. If you're willing to work on this and submit a PR then I'm sure John will help. |
Thanks! |
I'll assume you intended to close this, feel free to re-open if not. |
@lovell John implemented |
@felixbuenemann Thanks, will re-open and mark as a future enhancement. |
v0.18.0 now available with this feature. |
I cannot find a tif(f)() output method, also toFormat('tiff')/toFormat('tif') results in error:
It would be great if sharp supports tiff as output format, too.
The text was updated successfully, but these errors were encountered: