Commit 0418a5b2 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

frame (i.e. page number here) argument can be 0, so 'if frame' phrase will...

frame (i.e. page number here) argument can be 0, so 'if frame' phrase will ignore frame=0 argument, and it will convert all pages, that can use too much memory.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29403 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1a38bc0e
......@@ -414,7 +414,7 @@ class Image(File, OFSImage):
parameter_list.extend(['-density', '%sx%s' % (resolution, resolution)])
parameter_list.extend(['-quality', str(quality)])
parameter_list.extend(['-geometry', '%sx%s' % (width, height)])
if frame:
if frame is not None:
parameter_list.append('-[%s]' % frame)
else:
parameter_list.append('-')
......
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