diff --git a/fanficfare/story.py b/fanficfare/story.py index eea796b2..6fcca4bf 100644 --- a/fanficfare/story.py +++ b/fanficfare/story.py @@ -57,6 +57,9 @@ try: def convert_image(url,data,sizes,grayscale, removetrans,imgtype="jpg",background='#ffffff'): + + if url.lower().endswith('.svg'): + raise exceptions.RejectImage("Calibre image processing chokes on SVG images.") export = False img = Image() img.load(data)