diff --git a/ChangeLog b/ChangeLog index dbad020a..9e61a2ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,9 +16,13 @@ - add vips_hough base class and vips_hough_line() - add "mode" param to vips_draw_image() - add vips_hough_circle() +- reduce default cache size to 1,000 operations 6/3/14 started 7.38.6 - grey ramp minimum was wrong +- vipsthumbnail --crop could fail for very non-square images, thanks + Alessandro +- fix a crash in vips_rawsave(), thanks Andrea 24/2/14 started 7.38.5 - jpeg load from buffer could write to input, thanks Lovell diff --git a/libvips/foreign/rawsave.c b/libvips/foreign/rawsave.c index 0ab34125..14679878 100644 --- a/libvips/foreign/rawsave.c +++ b/libvips/foreign/rawsave.c @@ -174,7 +174,7 @@ vips_rawsave( VipsImage *in, const char *filename, ... ) int result; va_start( ap, filename ); - result = vips_call_split( "rawsave", ap, filename ); + result = vips_call_split( "rawsave", ap, in, filename ); va_end( ap ); return( result ); diff --git a/libvips/iofuncs/cache.c b/libvips/iofuncs/cache.c index b25f5949..40cdbcdc 100644 --- a/libvips/iofuncs/cache.c +++ b/libvips/iofuncs/cache.c @@ -77,10 +77,12 @@ char *vips__cache_max_files = NULL; gboolean vips__cache_dump = FALSE; gboolean vips__cache_trace = FALSE; -/* Max number of cached operations. We are likely to trim due to memuse or - * file use before we hit this limit. +/* Max number of cached operations. + * + * It was 10,000, but this was too high for batch-style applications with + * little reuse. */ -static int vips_cache_max = 10000; +static int vips_cache_max = 1000; /* How many tracked open files we allow before we start dropping cache. */