don't cache thumbnail

thanks tomasc! see

jcupitt/ruby-vips#109
This commit is contained in:
John Cupitt 2017-05-29 10:19:21 +01:00
parent 6a189d068b
commit 7bcf0bb93f
2 changed files with 9 additions and 0 deletions

View File

@ -3,6 +3,7 @@
- raise b64 limit to allow for huge profiles (thanks jaume)
- fix error return in blob save (thanks jaume)
- tag vipsprofile as py2 (thanks ioquatix)
- don't cache thumbnail (thanks tomasc)
23/4/17 started 8.5.5
- doc polishing

View File

@ -5,6 +5,8 @@
* - from vipsthumbnail.c
* 6/1/17
* - add @size parameter
* 29/5/17
* - don't cache (thanks tomasc)
*/
/*
@ -514,6 +516,7 @@ vips_thumbnail_class_init( VipsThumbnailClass *class )
{
GObjectClass *gobject_class = G_OBJECT_CLASS( class );
VipsObjectClass *vobject_class = VIPS_OBJECT_CLASS( class );
VipsOperationClass *operation_class = VIPS_OPERATION_CLASS( class );
gobject_class->dispose = vips_thumbnail_dispose;
gobject_class->finalize = vips_thumbnail_finalize;
@ -524,6 +527,11 @@ vips_thumbnail_class_init( VipsThumbnailClass *class )
vobject_class->description = _( "thumbnail generation" );
vobject_class->build = vips_thumbnail_build;
/* We mustn't cache these calls, since we open the file or buffer in
* sequential mode.
*/
operation_class->flags = VIPS_OPERATION_NOCACHE;
VIPS_ARG_IMAGE( class, "out", 2,
_( "Output" ),
_( "Output image" ),