I cannot find a tif(f)() output method, also toFormat('tiff')/toFormat('tif') results in error:
[Error: Unsupported output format tif(f)]
It would be great if sharp supports tiff as output format, too.
Hello, TIFF output is limited to filesystem only - use something like toFile('file.tif', ...) to access this feature.
I have to use the extra steps reading/writing the file (using fs module)
because of the issue with special characters in path.
It would be great if output methods for TIFF is expanded to buffer, too.
"the issue with special characters in path"
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?
I still have this issue on Windows + Linux - see this test: https://github.com/strarsis/sharp-issue-characters/
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
further processing in-memory without the need of a temporary files.
The next major version of sharp, v0.17.0, will be bundled with a pre-compiled libvips v8.4.x+.
"it would be still helpful if TIFF could be obtained as buffer"
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 tiffsave_buffer in master and it should be included in vips 8.5.
@felixbuenemann Thanks, will re-open and mark as a future enhancement.
Commit c8e59f0 on the ridge branch adds Buffer and Stream based TIFF output. This will be in v0.18.0.
v0.18.0 now available with this feature.
Most helpful comment
v0.18.0 now available with this feature.