From b01dd593095dc3c1ca78083fc6c55fe21cbf1d91 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sat, 27 Dec 2014 09:41:01 +0000 Subject: [PATCH] fix VipsBlob read oops, forgot the .get() --- ChangeLog | 2 ++ python/Vips.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 248433c8..2f875243 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 24/12/14 started 7.42.1 - add gobject-2.0 to Requires: in vips and vips-cpp .pc files +- bump soname +- fix VipsBlob read 4/11/14 started 7.42.0 - better default resolution for png load diff --git a/python/Vips.py b/python/Vips.py index f3927aae..28811161 100644 --- a/python/Vips.py +++ b/python/Vips.py @@ -84,7 +84,7 @@ def imageize(match_image, value): # unfortunately pygobject does not support this ... so for blobs we just use # bytes(). -unpack_types = [[Vips.Blob, bytes], +unpack_types = [[Vips.Blob, lambda x: bytes(x.get())], [Vips.ArrayDouble, lambda x: x.get()], [Vips.ArrayImage, lambda x: x.get()], [Vips.ArrayInt, lambda x: x.get()]]