Add_picture should accept StringIO instances #5

vidar opened this Issue Feb 14, 2013 · 1 comment


None yet

2 participants

vidar commented Feb 14, 2013

If I have a png image in a buffer (fetched from a network resource) I should be able to call directly to add_picture instead of writing it to disk and then sending a filepath to add_picture.

@scanny scanny pushed a commit that referenced this issue Feb 18, 2013
Steve Canny issue #5: add stream support to add_picture()
* add stream image scenario to 05-add-picture.feature
* add related unit tests
* clean up unit test coverage gaps to raise coverage to 99%
scanny commented Feb 18, 2013

Added stream support to ShapeCollection.add_picture(). Signature is now:

add_picture(file, left, top, width, height)

where file can be either a path to an image file (a string) or a file-like object.

@scanny scanny closed this Feb 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment