Recipes for Endgadget and Fudzilla (thanks to Darko Miletic). Also Fix #1448 (Cover page processing produces error)

This commit is contained in:
Kovid Goyal 2008-12-24 17:32:39 -08:00
parent 1cb96c7ec0
commit 1b8ab87107
3 changed files with 3 additions and 3 deletions

View File

@ -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')

View File

@ -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'
]

View File

@ -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