I haven't dug into this too terribly much, but I'm having an issue generating thumbnails using S3Store. I'll update later with more info if I can find it. Could be that this is a bug in wand, not sure yet... in any case, it seems like HTTPResponse is expected to be treated like a file like object, but wand seems to be trying to get attributes that HTTPResponse doesn't implement.
Here are the details:
picture.generate_thumbnail(width=320)
File "sqlalchemy_imageattach/entity.py", line 671, in generate_thumbnail
img = WandImage(file=f)
File "wand/image.py", line 1973, in __init__
self.read(file=file, resolution=resolution)
File "wand/image.py", line 2022, in read
fd = libc.fdopen(file.fileno(), file.mode)
AttributeError: 'HTTPResponse' object has no attribute 'mode'
I believe this is a bug in wand, and I'm attempting to fix it upstream. Feel free to close this, otherwise I think I'll leave it open until it's resolved upstream..
I haven't dug into this too terribly much, but I'm having an issue generating thumbnails using
S3Store
. I'll update later with more info if I can find it. Could be that this is a bug inwand
, not sure yet... in any case, it seems likeHTTPResponse
is expected to be treated like a file like object, butwand
seems to be trying to get attributes thatHTTPResponse
doesn't implement.Here are the details: