From 6573af3c2a92f26c3809b3c143ff11f2bc23fbb5 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Wed, 25 Nov 2015 13:29:23 +0000 Subject: [PATCH] always strip dzsave tile metadata dzsave now uses :strip => true for all tiles. There's no point adding all the metadata to every tile, so hopefully this won't break anything. Thanks Benjamin, see: https://github.com/jcupitt/libvips/issues/349 --- ChangeLog | 1 + libvips/foreign/dzsave.c | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 588672ed..779d5c48 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14,6 +14,7 @@ - added vips_mapim() ... resample with an index image, plus test - try to improve vips_resize() quality a little more - vips_resize() can do non-square resizes +- dzsave removes tile metadata by default, thanks Benjamin 7/5/15 started 8.1.1 - oop, vips-8.0 wrapper script should be vips-8.1, thanks Danilo diff --git a/libvips/foreign/dzsave.c b/libvips/foreign/dzsave.c index cee9bda7..aac907e4 100644 --- a/libvips/foreign/dzsave.c +++ b/libvips/foreign/dzsave.c @@ -55,6 +55,8 @@ * - allow zip > 4gb if we have a recent libgsf * 9/9/15 * - better overlap handling, thanks robclouth + * 25/11/15 + * - always strip tile metadata */ /* @@ -1141,8 +1143,12 @@ strip_work( VipsThreadState *state, void *a ) x = t; } + /* Hopefully no one will want the same metadata on all the tiles. + */ vips_image_set_int( x, "hide-progress", 1 ); - if( vips_image_write_to_buffer( x, dz->suffix, &buf, &len, NULL ) ) { + if( vips_image_write_to_buffer( x, dz->suffix, &buf, &len, + "strip", TRUE, + NULL ) ) { g_object_unref( x ); return( -1 ); }