Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-07-2019, 09:07 PM   #1
pslsr
Junior Member
pslsr began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Aug 2013
Device: none
replace title page using calibre?

Hello: using calibre 3.4.6 in w10, I want to replace what calibre calls "titlepage.xhtml" with another file. Questions.

-It looks to me (epub newbie) that "titlepage.xhtml" contains a .jpeg. And that's it, plus the usual metadata.
-The .jpeg does NOT have the title within it, nor the author name (me).
-So, I want to replace that .jpeg (only) with another .jpeg, in which I have embedded the book title and author name. I have the replacement .jpeg appropriately titled, so that the 2 jpegs (old/unacceptable) (replacement/acceptable).
-I replaced the original "cover.jpeg" new .jpeg renamed "cover.jpeg"? But the words still don't show, there's nothing in the metatext loading the words.

So, how do I get words to show within "cover.jpeg" contained in "titlepage.xhtml" ?

Thank you.
pslsr is offline   Reply With Quote
Old 09-07-2019, 09:40 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Words are put into the image with graphics tools.

If your cover is simple: The Generate cover plugin can place 4 fields of metadata on a background image.
THEN
you need to Rmbed the cove into the book (that replaces the existing 'Titlepage' with the newer one)
theducks is offline   Reply With Quote
Advert
Old 09-07-2019, 09:46 PM   #3
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,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@pslsr - the Calibre Library Manager has a couple of cover generation tools, a built-in one that you can access from the Metadata Editor, and an optional plugin - Generate Cover - see ==>> Index of plugins.

After creating cover from one of the above you'll need to embed it in the epub file, the easiest way to do that is with the Polish Book tool, select the book and press 'P'.

Or, if you're using the book editor in a stand-alone mode - i.e. without a library, export the cover.jpeg (right click the file), edit it with an image editor, and then replace cover.jpeg (right click the file) with the edited version.

Or use Sigil's Open With to do the same thing… more or less.

BR
BetterRed is offline   Reply With Quote
Old 09-07-2019, 10:02 PM   #4
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by pslsr View Post
Hello: using calibre 3.4.6 in w10, I want to replace what calibre calls "titlepage.xhtml" with another file. Questions.

-It looks to me (epub newbie) that "titlepage.xhtml" contains a .jpeg. And that's it, plus the usual metadata.
-The .jpeg does NOT have the title within it, nor the author name (me).
-So, I want to replace that .jpeg (only) with another .jpeg, in which I have embedded the book title and author name. I have the replacement .jpeg appropriately titled, so that the 2 jpegs (old/unacceptable) (replacement/acceptable).
-I replaced the original "cover.jpeg" new .jpeg renamed "cover.jpeg"? But the words still don't show, there's nothing in the metatext loading the words.

So, how do I get words to show within "cover.jpeg" contained in "titlepage.xhtml" ?
What you are saying sounds like it should have worked. Or, at least I assume you have opened the book in the editor and replaced the existing cover.jpeg with your new one. But, where doesn't it show? Are you saving and opening the book in the calibre viewer or some other ebook reader app or device? Does it show correctly in the preview in the editor? If you are looking at the cover calibre shows in the library, you won't have been updated. You need to set the cover from the book in the metadata editor.
davidfor is offline   Reply With Quote
Old 09-16-2019, 05:23 PM   #5
comicnut6
Junior Member
comicnut6 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Sep 2019
Device: Kindle
If you wish to replace the image file used as the cover:

1. Click on "Edit Metadata" on the main menu bar. In the Change Cover box, click on browse and navigate to the new file's location and import to the file in calibre. This will show on sidebar.

2. Click "Embed Metadata". This replaces the cover image in the images directory within the epub or azw3.

3. Open the file editor. Navigate to the text folder. Delete the "titlepage.xhtml"

4. Within the editor, click 'tools' (on the menubar), 'add cover' and select the new cover image. This creates a new titlepage.xhtml

5. You may want to edit the titlepage.xhtml to change how it is displayed. I like to change "preserveAspectRatio="none"" to "preserveAspectRatio="xMidYMid meet"". This preserves the aspect ratio of height to width.
comicnut6 is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to replace characters in title mariaclaudia Calibre 5 03-29-2018 10:30 PM
replace a part of the title Lauraq Calibre 5 05-23-2015 11:45 AM
Title page showing filename and not true book title... hikerguy Editor 3 03-30-2015 05:37 PM
Title page conversion problems in Calibre EbookNoob Calibre 5 05-09-2013 05:39 PM
Converting html to ebpub - get Calibre logo on title page. w_saunders Conversion 8 11-11-2011 02:14 AM


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


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