Commit 539e4ea6 authored by Nicolas Delaby's avatar Nicolas Delaby

Store converted value of picture in cache

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29012 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e1c0f9c8
......@@ -214,6 +214,9 @@ 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, display=display, format=format,
quality=quality, resolution=resolution,
frame=frame, image_size=image_size)
width, height = (image.width, image.height)
# Set cookie for chosen size
if cookie:
......
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