]> git.ipfire.org Git - ipfire.org.git/blobdiff - src/web/wiki.py
wiki: Do not try to resize vector images
[ipfire.org.git] / src / web / wiki.py
index edc52730ce62e1d92c1ff983b10d99099796c3c9..c2bdd43f334653230c756496c88fbc2f197c1abc 100644 (file)
@@ -245,7 +245,7 @@ class FileHandler(base.BaseHandler):
                size = self.get_argument_int("s", None)
 
                # Check if image should be resized
-               if file.is_image() and size:
+               if size and file.is_bitmap_image():
                        blob = file.get_thumbnail(size)
                else:
                        blob = file.blob