Thread: La Jornada
View Single Post
Old 12-30-2009, 04:52 PM   #7
rogeliodh
Member
rogeliodh knows better than to ask about the Gravitic Imploder Lance.rogeliodh knows better than to ask about the Gravitic Imploder Lance.rogeliodh knows better than to ask about the Gravitic Imploder Lance.rogeliodh knows better than to ask about the Gravitic Imploder Lance.rogeliodh knows better than to ask about the Gravitic Imploder Lance.rogeliodh knows better than to ask about the Gravitic Imploder Lance.rogeliodh knows better than to ask about the Gravitic Imploder Lance.rogeliodh knows better than to ask about the Gravitic Imploder Lance.rogeliodh knows better than to ask about the Gravitic Imploder Lance.rogeliodh knows better than to ask about the Gravitic Imploder Lance.rogeliodh knows better than to ask about the Gravitic Imploder Lance.
 
Posts: 14
Karma: 87858
Join Date: Dec 2009
Device: Kindle 3
Add conversion to jpg to covers

Quote:
Originally Posted by kovidgoyal View Post
look at the file calibre/ebooks/metadata/pdf.py in the calibre source code
I didn't get howto use the metadata :-(

But I think that it would be better if calibre itself autoconvert cover files to a reliable format (as jpg). So I implemented a change in BasicNewsRecipe so that recipes could tell calibre that the cover needs conversion to jpg

Attached is the change and the recipe using it. It is my first digging into calibre's source code and I'm a python beginner so any comments are welcome, hoping this change to be included in a future calibre release.

Best regards.
Rogelio
Attached Files
File Type: txt la_jornada.txt (2.6 KB, 252 views)
File Type: txt my-changes.txt (3.5 KB, 265 views)
rogeliodh is offline   Reply With Quote