File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 3
3
- raise b64 limit to allow for huge profiles (thanks jaume)
4
4
- fix error return in blob save (thanks jaume)
5
5
- tag vipsprofile as py2 (thanks ioquatix)
6
+ - don't cache thumbnail (thanks tomasc)
6
7
7
8
23/4/17 started 8.5.5
8
9
- doc polishing
Original file line number Diff line number Diff line change 5
5
* - from vipsthumbnail.c
6
6
* 6/1/17
7
7
* - add @size parameter
8
+ * 29/5/17
9
+ * - don't cache (thanks tomasc)
8
10
*/
9
11
10
12
/*
@@ -514,6 +516,7 @@ vips_thumbnail_class_init( VipsThumbnailClass *class )
514
516
{
515
517
GObjectClass * gobject_class = G_OBJECT_CLASS ( class );
516
518
VipsObjectClass * vobject_class = VIPS_OBJECT_CLASS ( class );
519
+ VipsOperationClass * operation_class = VIPS_OPERATION_CLASS ( class );
517
520
518
521
gobject_class -> dispose = vips_thumbnail_dispose ;
519
522
gobject_class -> finalize = vips_thumbnail_finalize ;
@@ -524,6 +527,11 @@ vips_thumbnail_class_init( VipsThumbnailClass *class )
524
527
vobject_class -> description = _ ( "thumbnail generation" );
525
528
vobject_class -> build = vips_thumbnail_build ;
526
529
530
+ /* We mustn't cache these calls, since we open the file or buffer in
531
+ * sequential mode.
532
+ */
533
+ operation_class -> flags = VIPS_OPERATION_NOCACHE ;
534
+
527
535
VIPS_ARG_IMAGE ( class , "out" , 2 ,
528
536
_ ( "Output" ),
529
537
_ ( "Output image" ),
You can’t perform that action at this time.
0 commit comments