No need to remove dzi file extension

libvips handles this - ensures filenames containing . work
This commit is contained in:
Lovell Fuller
2015-04-19 21:08:15 +01:00
parent 3614d14f83
commit a0655806de
2 changed files with 5 additions and 6 deletions

View File

@@ -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();
}