I have a .cmd (batch) file (courtesy of
this blog) which I am developing further.
When making epub files in batch mode with that script one of the items I try to do is add a cover if one exists by the same name in the same folder. I have it working, more or less, except if there is a file without matching cover image.
In that case my script uses the default cover (actually does not specify anything). What happens however is that I get
each time a
different cover from the Calibre > Edit Metadata > Change cover > Generate cover library.
However what I really was looking for is a custom cover with the metadata. For that I installed the Generate Cover plugin and tried different settings but could not get what I wanted. I then deleted the plugin trying to get back to the original Calibre settings. My next step was going to be to replace image library.png in C:\...\Calibre\Calibre\resources\images (and/or lt.png and/or calibre.png) in the hope that would give me a custom image. However I do not get the Calibre standard cover image (the one showing books) any more with ebook-convert.exe. Restore default has no effect.
I run Calibre in portable mode and even downloaded a new version (2.17.0) which I extracted into a
new separate folder and ... still covers from the library. (Does Calibre write to the registry, even if portable? Should I clear that? How?)
Two questions:
1) How can I get back to Calibre's original settings, at least in regard to default cover.
2) Is there a way to have custom images, inclusive of metadata, used for cover images when making epubs with ebook-convert.exe. Might changing library.png work? (Keep in mind I do not want to edit epub covers individually nor in batches but get a custom cover when I run ebook-convert.exe. in batch mode.)
Any help/hints would be greatly appreciated.