mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Recipes for Endgadget and Fudzilla (thanks to Darko Miletic). Also Fix #1448 (Cover page processing produces error)
This commit is contained in:
parent
1cb96c7ec0
commit
1b8ab87107
@ -1853,7 +1853,7 @@ def process_file(path, options, logger=None):
|
||||
scaled else im
|
||||
cf = PersistentTemporaryFile(prefix=__appname__+"_", suffix=".jpg")
|
||||
cf.close()
|
||||
cim.save(cf.name)
|
||||
cim.convert('RGB').save(cf.name)
|
||||
options.cover = cf.name
|
||||
|
||||
tim = im.resize((int(0.75*th), th), PILImage.ANTIALIAS).convert('RGB')
|
||||
|
@ -14,7 +14,7 @@ from calibre.ebooks.metadata import MetaInformation
|
||||
_METADATA_PRIORITIES = [
|
||||
'html', 'htm', 'xhtml', 'xhtm',
|
||||
'rtf', 'fb2', 'pdf', 'prc', 'odt',
|
||||
'epub', 'lit', 'lrx', 'lrf', 'mobi',
|
||||
'epub', 'lit', 'lrx', 'lrf', 'mobi',
|
||||
'rb', 'imp'
|
||||
]
|
||||
|
||||
|
@ -19,7 +19,7 @@ recipe_modules = [
|
||||
'clarin', 'financial_times', 'heise', 'le_monde', 'harpers', 'science_aas',
|
||||
'science_news', 'the_nation', 'lrb', 'harpers_full', 'liberation',
|
||||
'linux_magazine', 'telegraph_uk', 'utne', 'sciencedaily', 'forbes',
|
||||
'time',
|
||||
'time', 'endgadget', 'fudzilla',
|
||||
]
|
||||
|
||||
import re, imp, inspect, time, os
|
||||
|
Loading…
x
Reference in New Issue
Block a user