Commit 701c2820 authored by Jérome Perrin's avatar Jérome Perrin

don't try to convert non images

Conflicts:
	bt5/erp5_dms_conversion_catalog/bt/revision
parent 749b40b2
......@@ -57,6 +57,9 @@ if quality is None:\n
# it\'s required so fall back to system preferences as\n
# directly accessed over URL will do the same\n
quality = context.getDefaultImageQuality(format)\n
if not context.getContentType().startswith(\'image/\'):\n
context.log(\'%s is not an image, skipping preconversion\' % context.getRelativeUrl())\n
return \n
\n
# UI uses \'large\' display\n
display_list.append(\'large\')\n
......
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