Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 06-08-2015, 04:56 AM   #1
RobertDDL
Whatever...
RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.
 
RobertDDL's Avatar
 
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?
RobertDDL is offline   Reply With Quote
Old 06-08-2015, 05:08 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is online now   Reply With Quote
Advert
Old 06-08-2015, 07:03 AM   #3
RobertDDL
Whatever...
RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.
 
RobertDDL's Avatar
 
Posts: 197
Karma: 1114225
Join Date: Feb 2015
Location: Austria
Device: PocketBook InkPad 840, Touch HD 2
Quote:
Originally Posted by kovidgoyal View Post
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.
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?)
RobertDDL is offline   Reply With Quote
Old 06-08-2015, 10:52 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is online now   Reply With Quote
Old 06-09-2015, 03:26 AM   #5
RobertDDL
Whatever...
RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.
 
RobertDDL's Avatar
 
Posts: 197
Karma: 1114225
Join Date: Feb 2015
Location: Austria
Device: PocketBook InkPad 840, Touch HD 2
Quote:
Originally Posted by kovidgoyal View Post
IIRC, ebook-convert uses the same cover generation function as the rest of calibre, so it should work.
But it didn't, else I wouldn't keep bothering you.

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?
RobertDDL is offline   Reply With Quote
Advert
Old 06-09-2015, 05:32 AM   #6
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
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.
Attached Thumbnails
Click image for larger version

Name:	GC1.JPG
Views:	281
Size:	163.1 KB
ID:	139129   Click image for larger version

Name:	GC2.JPG
Views:	288
Size:	66.1 KB
ID:	139130   Click image for larger version

Name:	GC3.JPG
Views:	255
Size:	62.4 KB
ID:	139131  
Divingduck is offline   Reply With Quote
Old 06-09-2015, 12:01 PM   #7
RobertDDL
Whatever...
RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.
 
RobertDDL's Avatar
 
Posts: 197
Karma: 1114225
Join Date: Feb 2015
Location: Austria
Device: PocketBook InkPad 840, Touch HD 2
Quote:
Originally Posted by Divingduck View Post
You maybe forgot to setup the check boxes within calibre.
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, ' &amp; ');\nauthors = sublist(authors, 0, 2, ' &amp; ');\nauthors = list_re(authors, ' &amp; ', '(.+)', '<b>\\1');\nauthors = re(authors, ' &amp; ', '<br>');\nre(authors, '&amp;&amp;', '&amp;')\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!?
RobertDDL is offline   Reply With Quote
Old 06-09-2015, 02:18 PM   #8
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
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.
Divingduck is offline   Reply With Quote
Old 06-10-2015, 03:50 AM   #9
RobertDDL
Whatever...
RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.
 
RobertDDL's Avatar
 
Posts: 197
Karma: 1114225
Join Date: Feb 2015
Location: Austria
Device: PocketBook InkPad 840, Touch HD 2
Quote:
Originally Posted by Divingduck View Post
Your file looks a bit disordered
I haven't touched it -- it's calibre's default, with my cover settings. Pasting it here has removed the indents, though.

Quote:
Originally Posted by Divingduck View Post
I use the command --prefer-metadata-cover.
If your file have already a cover, that one will not replaced by the cover generator.
I've tried --prefer-metadata-cover now, but the result is still the same. And no, my source files do not include cover (or any other) images.

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!
RobertDDL is offline   Reply With Quote
Old 06-10-2015, 08:48 AM   #10
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is online now   Reply With Quote
Old 06-10-2015, 09:18 AM   #11
RobertDDL
Whatever...
RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.RobertDDL ought to be getting tired of karma fortunes by now.
 
RobertDDL's Avatar
 
Posts: 197
Karma: 1114225
Join Date: Feb 2015
Location: Austria
Device: PocketBook InkPad 840, Touch HD 2
Quote:
Originally Posted by kovidgoyal View Post
You cannot use ebook-convert with calibre portable. Use a regular calibre install, or set the CALIBRE_CONFIG_DIRECTORY environment variable yourself.
Thank you, this clarifies the issue!

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!
RobertDDL is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 09:33 AM.


MobileRead.com is a privately owned, operated and funded community.