![]() |
#1 |
Whatever...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 197
Karma: 1114225
Join Date: Feb 2015
Location: Austria
Device: PocketBook InkPad 840, Touch HD 2
|
Can I choose between different default cover designs?
When I convert files (e.g. from HTML to EPUB), I gladly accept Calibre's offer to generate default covers. Calibre seems to choose randomly from a set of different cover designs (some of which I like better than others) -- is there any way I can choose one of them, and stay with it for all my EPUBs?
|
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yes you can control them by long clicking the generate cover button in the edit metadata dialog and choosing customize. In the customize dialog make sure "save these settings as defaults for future use" is checked.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Whatever...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 197
Karma: 1114225
Join Date: Feb 2015
Location: Austria
Device: PocketBook InkPad 840, Touch HD 2
|
Thank you! Sorry to be a be a nuisance, but one more question: can I get ebook-convert from the command line to honor these settings? (I can see that they are saved in cover_generation.json, and they work with calibre-portable.exe, but ebook-convert.exe seems unimpressed?)
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
IIRC, ebook-convert uses the same cover generation function as the rest of calibre, so it should work.
|
![]() |
![]() |
![]() |
#5 | |
Whatever...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 197
Karma: 1114225
Join Date: Feb 2015
Location: Austria
Device: PocketBook InkPad 840, Touch HD 2
|
Quote:
I'm using Calibre Portable 2.26.0.0 on a Win 7 64 bit system. I call a cmd file ebook-convert %1.htm %1.epub --epub-inline-toc --level1-toc //h:h1 --level2-toc //h:h2 --page-breaks-before //h:h1 --language en 30 times, for 30 different files, and their generated covers are random, ignoring the "disabled_styles" and "disabled_color_themes" settings in cover_generation.json. I've also noticed that, different from calibre-portable, ebook-convert does not update cover_generation.json, "last_used_style" does not reflect the style last used by calibre-portable. Source and target files, as well as ebook-convert.exe, are located in Calibre Portable\Calibre, cover_generation.json is in Calibre Portable\Calibre Settings. Is there an option I've neglected to use, or could it be an issue of the portable version, and would it work with the non-portable one? |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
You maybe forgot to setup the check boxes within calibre.
You need first start calibre mobile, go to the edit Metadata dialog and open the setup dialog for generating covers and make your personal settings. After you leave this dialog with Ok, theses entries will save in the configuration file and can use this settings via cmd. That way it works for my recipes w/o covers very well. |
![]() |
![]() |
![]() |
#7 |
Whatever...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 197
Karma: 1114225
Join Date: Feb 2015
Location: Austria
Device: PocketBook InkPad 840, Touch HD 2
|
No, I didn't.
cover_generation.json looks like this: { "cover_width": 1200, "last_used_colors": "Silver", "color_themes": {}, "title_font_family": null, "title_template": "<b>{title}", "subtitle_template": "{series:'test($, strcat(\"<i>\", $, \"</i> - \", raw_field(\"formatted_series_index\")), \"\")'}", "footer_template": "program:\n# Show at most two authors, on separate lines.\nauthors = field('authors');\nnum = count(authors, ' & ');\nauthors = sublist(authors, 0, 2, ' & ');\nauthors = list_re(authors, ' & ', '(.+)', '<b>\\1');\nauthors = re(authors, ' & ', '<br>');\nre(authors, '&&', '&')\n", "cover_height": 1600, "title_font_size": 120, "disabled_styles": [ "Banner", "Blocks", "The Cross" ], "subtitle_font_size": 80, "subtitle_font_family": null, "footer_font_size": 80, "footer_font_family": null, "disabled_color_themes": [ "Grass", "Earth", "Water" ], "last_used_style": "Half and Half" } This leaves "Half and Half" and "Silver" un-disabled and thus selected, and calibre-portable remembers and heeds these settings, but whatever I try, ebook-convert.exe ignores them!? |
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
Your file looks a bit disordered, but I think this doesn't matter. But you can rename/delete the file. It will be create new if you edit the setup again.
There are maybe two other things to look about: I use the command --prefer-metadata-cover. If your file have already a cover, that one will not replaced by the cover generator. If so, you need first delete that cover. These are all ideas I have. Perhaps Kovid have an other one. |
![]() |
![]() |
![]() |
#9 | |
Whatever...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 197
Karma: 1114225
Join Date: Feb 2015
Location: Austria
Device: PocketBook InkPad 840, Touch HD 2
|
I haven't touched it -- it's calibre's default, with my cover settings. Pasting it here has removed the indents, though.
Quote:
It's not a really serious problem, though -- it may be quicker to create my own cover images and include them with --cover %1.jpg than trying to find a solution to the "why don't the cover settings work?" question ![]() Thank's for all the help! |
|
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You cannot use ebook-convert with calibre portable. Use a regular calibre install, or set the CALIBRE_CONFIG_DIRECTORY environment variable yourself.
|
![]() |
![]() |
![]() |
#11 | |
Whatever...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 197
Karma: 1114225
Join Date: Feb 2015
Location: Austria
Device: PocketBook InkPad 840, Touch HD 2
|
Quote:
Except for the cover generation problem I am happy with the portable ebook-convert, though, and I'm using my own cover images now, so, all is well -- thanks again! |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How does Calibre choose cover from CBZ | emphyrion | Library Management | 3 | 04-11-2015 04:23 AM |
New calibre blog post on cover designs feature | Krittika Goyal | Calibre | 1 | 09-29-2014 08:11 AM |
Change Default Format Opened When clicking a cover in cover browser? | phaeren12 | Library Management | 11 | 09-19-2014 10:10 PM |
Please help me choose a cover for my nookcolor | couponchick | Nook Color & Nook Tablet | 22 | 01-01-2011 01:31 PM |
Help me choose a cover | ChrisDolley | Writers' Corner | 8 | 12-31-2009 06:11 AM |