From 89db89b9ba74c2579d876bf699d282cef609c46d Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Thu, 24 Apr 2014 21:58:08 +0100 Subject: [PATCH] use vips_foreign_save_buffer() so dzsave now knows about save options --- libvips/foreign/dzsave.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/libvips/foreign/dzsave.c b/libvips/foreign/dzsave.c index dc4198b6..dd0897ed 100644 --- a/libvips/foreign/dzsave.c +++ b/libvips/foreign/dzsave.c @@ -1021,7 +1021,7 @@ strip_work( VipsThreadState *state, void *a ) printf( "strip_work: writing to %s\n", buf ); #endif /*DEBUG_VERBOSE*/ - if( vips_jpegsave_buffer( x, &buf, &len, NULL ) ) { + if( vips_foreign_save_buffer( x, dz->suffix, &buf, &len, NULL ) ) { g_object_unref( x ); return( -1 ); } @@ -1042,14 +1042,6 @@ strip_work( VipsThreadState *state, void *a ) g_free( buf ); - /* - if( vips_image_write_to_file( x, buf ) ) { - g_object_unref( x ); - return( -1 ); - } - g_object_unref( x ); - */ - #ifdef DEBUG_VERBOSE printf( "strip_work: success\n" ); #endif /*DEBUG_VERBOSE*/