fix VipsBlob read

oops, forgot the .get()
This commit is contained in:
John Cupitt 2014-12-27 09:41:01 +00:00
parent 01b409bdba
commit b01dd59309
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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()]]