Open picakoch opened 7 years ago
I have the same problem then @picakoch and solution proposed works like a charm.
@picakoch is the method generate_thumbnail() working for you when using Multiple Image Sets ? Here it only generate the first thumbnail, others ImageSets is getting the thumbnail of the first one.
I might not use the library as expected, but I could not find a way to use the
find_thumbnail
method on aImageSubset
object (returned byget_image_set
). I get the following error :AttributeError: 'ImageSubset' object has no attribute 'filter_by'
Looking in the code, it doesn't seem surprising since
ImageSubset
is not a descendant ofBaseImageQuery
, and the methodfilter_by
is called on theself
variable.Could you please let me know how this should be done ? Here is a snippet of my code (Python 3, imageattach version 1.0.0):
If I reproduce the code of
find_thumbnail
but replacing theq
variable withimage_set.query
, then it works smoothly.Thanks a lot, Best regards, Antoine