From d854c18a2f46faf02704ec71b3e1c0f2b052837b Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sat, 11 Mar 2017 12:37:03 +0000 Subject: [PATCH] update notes --- TODO | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/TODO b/TODO index 69212e9d..a9bda1bd 100644 --- a/TODO +++ b/TODO @@ -59,32 +59,20 @@ - why can't we do - -im = Vips.Image.new_from_file("/data/john/pics/k2.jpg", access = "sequential") - - - -import logging -logging.basicConfig(level = logging.DEBUG) -from gi.repository import Vips -im = Vips.Image.new_from_file("/data/john/pics/k2.jpg", access = "sequential") - -DEBUG:gi.overrides.Vips:assigning sequential to access -DEBUG:gi.overrides.Vips:access needs a -DEBUG:gi.overrides.Vips:assigning sequential - - ValueError: invalid literal for int() with base 10: 'sequential' + im = Vips.Image.new_from_file("/data/john/pics/k2.jpg", access = "sequential") no idea ... this works fine: im.embed(10, 10, 100, 100, extend = "copy") - what about + test: - im = Vips.Image.jpegload(sys.argv[1], access = "sequential") - - nope, fails too ... mysterious! + op = Vips.Operation.new("embed") + op.props.__setattr__("extend", "copy") + op = Vips.Operation.new("jpegload") + op.props.__setattr__("access", "sequential") + first setattr works fine, second fails with invalid literal