mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-05 23:56:08 +01:00
Calibre image processing chokes on SVG images.
This commit is contained in:
parent
ec100bcf85
commit
1a5e1893ed
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue