Commit 76fae4dc authored by Nicolas Delaby's avatar Nicolas Delaby

Fix bug introduced in r29009

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29091 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent caaf733b
......@@ -353,10 +353,10 @@ class Image(File, OFSImage):
mime, image = self._makeDisplayPhoto(display, format=format, quality=quality,
resolution=resolution, frame=frame,
image_size=image_size)
self.setConversion(image, mime, format=format, quality=quality,
self.setConversion(image.data, mime, format=format, quality=quality,
resolution=resolution, frame=frame,
image_size=image_size)
return mime, image
return mime, image.data
return self.getContentType(), self.getData()
security.declareProtected(Permissions.View, 'getSearchableText')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment