как я могу получить md5 объекта pil без сохранения в файл?
imq.save('out.png') hash = hashlib.md5(open('out.png','rb').read()).hexdigest()