mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-08 12:36:11 +02:00
Add a fake get_image_size() method for when no image processing available. Closes #621
This commit is contained in:
parent
30e076def7
commit
680bcc4280
1 changed files with 4 additions and 0 deletions
|
|
@ -156,6 +156,10 @@ except:
|
|||
return (data,imgtype,imagetypes[imgtype])
|
||||
|
||||
except:
|
||||
# No calibre or PIL, give a random largish size.
|
||||
def get_image_size(data):
|
||||
return 1000,1000
|
||||
|
||||
# No calibre or PIL, simple pass through with mimetype.
|
||||
def convert_image(url,data,sizes,grayscale,
|
||||
removetrans,imgtype="jpg",background='#ffffff'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue