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
This commit is contained in:
John Cupitt 2015-11-25 13:29:23 +00:00
parent 9b03b27b9c
commit 6573af3c2a
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

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