Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-27-2024, 10:01 AM   #1
julo
Connoisseur
julo began at the beginning.
 
Posts: 72
Karma: 12
Join Date: Apr 2010
Location: Pittsburgh area
Device: prs-505,900,T2
calibre ebook-meta adds unwanted cover

I have EPUBs generated from txt files. When I add/correct the meta of author/title with ebook-meta an image is also generated and added to the file. This is an image of the first x text lines of the book.
I do not want that image but do not see any option for that in the ebook-meta CLI options (https://manual.calibre-ebook.com/gen...a.html#options).
Calibre > Preferences > Output options > EPUB output > No default cover: is checked

Using ebook-meta.exe in a bat file this generates that image
Quote:
"...\ebook-meta.exe" "%~1" --authors %author% --title %title%
this plus variations: fails with FileNotFoundError and does nothing to meta
Quote:
"...\ebook-meta.exe" "%~1" --authors %author% --title %title% --cover ""
Is there a way to prevent generating the text image cover and if so how?
julo is offline   Reply With Quote
Old 10-27-2024, 12:07 PM   #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,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
EPUBs have a default cover of the first page when no cover is present. ebook-meta works by reading the metadata and then updating it, this read metadata includes the default cover. Instead of trying to change the metadata with ebook-meta after creating the epub, simply specify the title and authors in the book-convert command line.
kovidgoyal is offline   Reply With Quote
Advert
Old 10-27-2024, 08:25 PM   #3
julo
Connoisseur
julo began at the beginning.
 
Posts: 72
Karma: 12
Join Date: Apr 2010
Location: Pittsburgh area
Device: prs-505,900,T2
I had originally planned to use epub-convert but then I thought, since I only wanted to change author and title, that ebook-meta might be the more appropriate and easier route.

Bummer, so ebook-meta is out. I am not too keen to always add a cover since the size of a file, if converted from text, gives me an indication of how many pages a book has. It doesn't add anything else, just makes it bigger. A test file went from 30kb (~30 pages) to 540 kb.
julo is offline   Reply With Quote
Old 10-27-2024, 10:11 PM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by julo View Post
I had originally planned to use epub-convert but then I thought, since I only wanted to change author and title, that ebook-meta might be the more appropriate and easier route.

Bummer, so ebook-meta is out. I am not too keen to always add a cover since the size of a file, if converted from text, gives me an indication of how many pages a book has. It doesn't add anything else, just makes it bigger. A test file went from 30kb (~30 pages) to 540 kb.
You can remove the cover with the Modify ePub plugin. It can be run from the command line - see last para of the Help text.

BR
BetterRed is offline   Reply With Quote
Old 10-27-2024, 11:02 PM   #5
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,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...245df66b6ce0ff
kovidgoyal is offline   Reply With Quote
Advert
Old 10-28-2024, 03:02 PM   #6
julo
Connoisseur
julo began at the beginning.
 
Posts: 72
Karma: 12
Join Date: Apr 2010
Location: Pittsburgh area
Device: prs-505,900,T2
Quote:
Originally Posted by kovidgoyal View Post
This looks promising. Thank you. When will it become available?

Last edited by julo; 10-28-2024 at 03:04 PM.
julo is offline   Reply With Quote
Old 10-28-2024, 04:18 PM   #7
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,210
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
If you are running from source, it's available today. If not, it will be available in the calibre preview release if that happens, otherwise the next calibre release. Either release tends to happen on Fridays.
DNSB is offline   Reply With Quote
Old 10-30-2024, 05:42 PM   #8
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,974
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Unless Kovid pushes back the usual biweekly schedule for whatever reason, the next full release should be this Friday.

EDIT: It was a preview release for this week: https://www.mobileread.com/forums/sh...50#post4464350

Last edited by ownedbycats; 11-01-2024 at 06:05 PM.
ownedbycats is offline   Reply With Quote
Old 11-04-2024, 08:09 PM   #9
julo
Connoisseur
julo began at the beginning.
 
Posts: 72
Karma: 12
Join Date: Apr 2010
Location: Pittsburgh area
Device: prs-505,900,T2
Quote:
Originally Posted by kovidgoyal View Post
Thank you, thank you. First test runs look very promising. Thanks again!
julo is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Line break adds unwanted code, how to change this? Pedro Magnifico Sigil 18 03-16-2021 07:19 PM
EPUB>PDF conversion adds unwanted margins Micelement Conversion 1 10-15-2020 06:56 AM
ebook-meta command doesn't add cover to ePub and mobi EbokJunkie Conversion 8 04-28-2014 03:13 AM
Patch: Calibre adds tags to identify ebook formats created by calibre. siebert Calibre 1 07-18-2011 02:07 PM
set meta data with ebook-meta and ebook-convert krischik Calibre 6 01-19-2010 11:40 AM


All times are GMT -4. The time now is 06:42 AM.


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