output ref_count in object summary

tiny Vips.py fix too
This commit is contained in:
John Cupitt 2014-12-10 09:23:51 +00:00
parent 64bdadadf2
commit 9694cc8adb
2 changed files with 2 additions and 1 deletions

View File

@ -1473,6 +1473,7 @@ vips_object_real_summary_class( VipsObjectClass *class, VipsBuf *buf )
static void static void
vips_object_real_summary( VipsObject *object, VipsBuf *buf ) vips_object_real_summary( VipsObject *object, VipsBuf *buf )
{ {
vips_buf_appendf( buf, " count=%d", G_OBJECT( object )->ref_count );
} }
static void static void

View File

@ -751,7 +751,7 @@ class Image(Vips.Image):
# image-ize # image-ize
if GObject.type_is_a(gtype, vips_type_image): if GObject.type_is_a(gtype, vips_type_image):
if not isinstance(value, Vips.Image): if not isinstance(value, Vips.Image):
value = imageize(match_image, value) value = imageize(self, value)
# array-ize some types, if necessary # array-ize some types, if necessary
value = arrayize(gtype, value) value = arrayize(gtype, value)