mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
No need to remove dzi file extension
libvips handles this - ensures filenames containing . work
This commit is contained in:
@@ -934,8 +934,7 @@ class ResizeWorker : public NanAsyncWorker {
|
||||
baton->outputFormat = "tiff";
|
||||
} else if (outputDz) {
|
||||
// Write DZ to file
|
||||
std::string filename_no_extension = baton->output.substr(0, baton->output.length() - 4);
|
||||
if (vips_dzsave(image, filename_no_extension.c_str(), "strip", !baton->withMetadata,
|
||||
if (vips_dzsave(image, baton->output.c_str(), "strip", !baton->withMetadata,
|
||||
"tile_size", baton->tileSize, "overlap", baton->tileOverlap, NULL)) {
|
||||
return Error();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user