Commit bf872467 authored by Jérome Perrin's avatar Jérome Perrin

don't try to convert non images

parent 9ef72d3f
......@@ -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
......
24
\ No newline at end of file
25
\ No newline at end of file
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