View Single Post
Old 10-31-2017, 09:59 AM   #6
olin-shivers
Junior Member
olin-shivers began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Oct 2014
Device: kindle
Quote:
Originally Posted by kovidgoyal View Post
I dont see what's so hacky about it. But if you really want to run just the cover generator, do it like this.

Code:
calibre-debug -c "from calibre.ebooks.covers import *; open('cover.jpg', 'wb').write(create_cover('my title', ['my author'])))"

And you can set whatever preferences you like when using the create_cover function, see the sourcecode for details.
Kovid-

One more question: can you tell me how to make this code cause SVG output?

-Olin
olin-shivers is offline   Reply With Quote