From 00982f6297f73fd0138896506730c0a7f0a9b8d1 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Tue, 15 Jan 2019 09:36:31 +0000 Subject: [PATCH] add changelog notes and small formatting issues --- ChangeLog | 2 ++ libvips/foreign/webpsave.c | 7 +++++++ libvips/iofuncs/image.c | 8 +++++--- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index d3da4650..f06c6fe2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -17,6 +17,8 @@ - add vips_CMYK2XYZ() and vips_XYZ2CMYK(), plus associated routes - include cmyk and srgb fallback profiles - add vips_profile_load() and use it everywhere +- fix race in temp filename creation [lhecker] +- add @reduction_effort param to webpsave [lovell] 4/1/19 started 8.7.4 - fix memory leak in magickload [kleisauke] diff --git a/libvips/foreign/webpsave.c b/libvips/foreign/webpsave.c index 8d75db14..b9466421 100644 --- a/libvips/foreign/webpsave.c +++ b/libvips/foreign/webpsave.c @@ -2,6 +2,10 @@ * * 24/11/11 * - wrap a class around the webp writer + * 29/10/18 + * - add animated webp support + * 15/1/19 lovell + * - add @reduction_effort */ /* @@ -441,9 +445,12 @@ vips_foreign_save_webp_mime_init( VipsForeignSaveWebpMime *mime ) * * Use @preset to hint the image type to the lossy compressor. The default is * #VIPS_FOREIGN_WEBP_PRESET_DEFAULT. + * * Set @smart_subsample to enable high quality chroma subsampling. + * * Use @alpha_q to set the quality for the alpha channel in lossy mode. It has * the range 1 - 100, with the default 100. + * * Use @reduction_effort to control how much CPU time to spend attempting to * reduce file size. A higher value means more effort and therefore CPU time * should be spent. It has the range 0-6 and a default value of 4. diff --git a/libvips/iofuncs/image.c b/libvips/iofuncs/image.c index e2828363..ad9f2f7b 100644 --- a/libvips/iofuncs/image.c +++ b/libvips/iofuncs/image.c @@ -1696,7 +1696,8 @@ vips_image_new( void ) char filename[26]; vips_check_init(); - vips_image_temp_name( filename, sizeof(filename) ); + + vips_image_temp_name( filename, sizeof( filename ) ); image = VIPS_IMAGE( g_object_new( VIPS_TYPE_IMAGE, NULL ) ); g_object_set( image, @@ -1748,7 +1749,8 @@ VipsImage * vips_image_new_memory( void ) { char filename[26]; - vips_image_temp_name( filename, sizeof(filename) ); + + vips_image_temp_name( filename, sizeof( filename ) ); return( vips_image_new_mode( filename, "t" ) ); } @@ -2015,7 +2017,7 @@ vips_image_new_from_memory( const void *data, size_t size, char filename[26]; vips_check_init(); - vips_image_temp_name( filename, sizeof(filename) ); + vips_image_temp_name( filename, sizeof( filename ) ); image = VIPS_IMAGE( g_object_new( VIPS_TYPE_IMAGE, NULL ) ); g_object_set( image,