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 08-16-2022, 04:27 PM   #1
CJinPHL
Junior Member
CJinPHL began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Aug 2022
Device: none
Conversion to ePub produces small cover size in Nook library

The ePub file resulting from converting my book from XHTML looks and works fine when viewed in Calibre or Adobe Digital Editions. But when I import the ePub to Nook for PC and view it there, the library view shows a shrunk-down size for the cover, about 1/4 of the size of other books in the library.

When I view the same cover within the book itself, this problem doesn't occur. Any ideas how I can fix this?
CJinPHL is offline   Reply With Quote
Old 08-17-2022, 08:19 PM   #2
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,432
Karma: 239219453
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
What is the resolution of the cover image in Calibre?
Sirtel is offline   Reply With Quote
Advert
Old 08-17-2022, 08:47 PM   #3
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
It will be the code in the page displaying the image. Odds are, the cover image is smaller and the code is simply putting it in the page without resizing it. The calibre viewer will show the cover page full size as it does not use the code. If it determines that the cover page is just the code to display the image, it simple displays the image.

If you change to cover page to use an SVG wrapper and have it fill the page, it should work better. There are options in the conversion or Polish to do this.
davidfor is offline   Reply With Quote
Old 08-17-2022, 09:14 PM   #4
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,064
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by CJinPHL View Post
When I view the same cover within the book itself, this problem doesn't occur. Any ideas how I can fix this?
Do you mean the thumbnail image in the library listing, not when you open the book?

Just asking to clarify the problem. I don’t know how the Nook app works.
jhowell is offline   Reply With Quote
Old 08-18-2022, 08:40 AM   #5
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,687
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by CJinPHL View Post
The ePub file resulting from converting my book from XHTML looks and works fine when viewed in Calibre or Adobe Digital Editions. But when I import the ePub to Nook for PC and view it there, the library view shows a shrunk-down size for the cover, about 1/4 of the size of other books in the library.

When I view the same cover within the book itself, this problem doesn't occur. Any ideas how I can fix this?
Set the device in the output profile to Tablet. That way images will not be resized.
JSWolf is offline   Reply With Quote
Advert
Old 08-18-2022, 11:20 AM   #6
CJinPHL
Junior Member
CJinPHL began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Aug 2022
Device: none
Quote:
Originally Posted by Sirtel View Post
What is the resolution of the cover image in Calibre?
Image is 1200 x 1600, 96 dpi
CJinPHL is offline   Reply With Quote
Old 08-18-2022, 11:27 AM   #7
CJinPHL
Junior Member
CJinPHL began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Aug 2022
Device: none
Quote:
Originally Posted by davidfor View Post
It will be the code in the page displaying the image. Odds are, the cover image is smaller and the code is simply putting it in the page without resizing it. The calibre viewer will show the cover page full size as it does not use the code. If it determines that the cover page is just the code to display the image, it simple displays the image.

If you change to cover page to use an SVG wrapper and have it fill the page, it should work better. There are options in the conversion or Polish to do this.
I don't know much about how Calibre works, but I looked at the file generated by Calibre called titlepage.xhtml. It has an SVG wrapper, but I see it is resizing my file to 563 x 751.

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 563 751" preserveAspectRatio="xMidYMid meet">
<image width="563" height="751" xlink:href="cover.jpeg"/>

I'm going to try editing this code in Calibre to see if that will solve it.
CJinPHL is offline   Reply With Quote
Old 08-18-2022, 11:36 AM   #8
CJinPHL
Junior Member
CJinPHL began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Aug 2022
Device: none
Quote:
Originally Posted by davidfor View Post
It will be the code in the page displaying the image. Odds are, the cover image is smaller and the code is simply putting it in the page without resizing it. The calibre viewer will show the cover page full size as it does not use the code. If it determines that the cover page is just the code to display the image, it simple displays the image.

If you change to cover page to use an SVG wrapper and have it fill the page, it should work better. There are options in the conversion or Polish to do this.
I don't know much about how Calibre works, but I do see some code created by Calibre in a file called titlepage.xhtml. The SVG wrapper there uses a different file size than the original file size I uploaded. But just editing the code in that file doesn't solve the problem, so it must be happening somewhere else.
CJinPHL is offline   Reply With Quote
Old 08-18-2022, 11:40 AM   #9
CJinPHL
Junior Member
CJinPHL began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Aug 2022
Device: none
Quote:
Originally Posted by jhowell View Post
Do you mean the thumbnail image in the library listing, not when you open the book?

Just asking to clarify the problem. I don’t know how the Nook app works.
That's exactly what I mean. The cover shows as a small square inside a white box. The white box is the size of other thumbnails in the Nook library.
CJinPHL is offline   Reply With Quote
Old 08-18-2022, 12:33 PM   #10
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,003
Karma: 168961900
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by CJinPHL View Post
I don't know much about how Calibre works, but I do see some code created by Calibre in a file called titlepage.xhtml. The SVG wrapper there uses a different file size than the original file size I uploaded. But just editing the code in that file doesn't solve the problem, so it must be happening somewhere else.
Have you tried the suggestion of setting the output profile to tablet to prevent image resizing? Preferences => Conversion => Common Options => Page Setup => Output Profile => Tablet. I also set the Input profile to Default profile.

Your image size in the SVG wrapper suggests you have set an approximately 600x800 device as the Output profile (Generic eInk for example).

Last edited by DNSB; 08-18-2022 at 12:36 PM.
DNSB is offline   Reply With Quote
Old 08-18-2022, 02:06 PM   #11
CJinPHL
Junior Member
CJinPHL began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Aug 2022
Device: none
Quote:
Originally Posted by DNSB View Post
Have you tried the suggestion of setting the output profile to tablet to prevent image resizing? Preferences => Conversion => Common Options => Page Setup => Output Profile => Tablet. I also set the Input profile to Default profile.

Your image size in the SVG wrapper suggests you have set an approximately 600x800 device as the Output profile (Generic eInk for example).
This may be a bug in the Nook Windows app when ePub books from sources other than B&N are imported. I tried the solution of setting the Calibre output profile to tablet (also suggested by JSWolf), and now the Calibre-generated SVG wrapper does show the original image size.

However, when viewed in the Nook app, the cover thumbnail still has the same problem as before. (Note that I'm viewing the book in the Nook Windows app, not Nook for PC which I stated previously.)

My guess is that the number of people who will experience this glitch is miniscule, so I'm going to ignore it and go on with my life. Thanks to all for your help!
CJinPHL is offline   Reply With Quote
Old 08-19-2022, 12:08 AM   #12
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 CJinPHL View Post
I don't know much about how Calibre works, but I looked at the file generated by Calibre called titlepage.xhtml. It has an SVG wrapper, but I see it is resizing my file to 563 x 751.

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 563 751" preserveAspectRatio="xMidYMid meet">
<image width="563" height="751" xlink:href="cover.jpeg"/>

I'm going to try editing this code in Calibre to see if that will solve it.
That is the expected code for centring the cover image. Calibre will update the metadata and the cover image when the book is sent to the device. But, it doesn't update the cover page if the image is not the same size as the previous one. So, you might have a much bigger image that is being downscaled.

You can fix this easily in the editor. Again, calibre will update the cover image and metadata when you open the editor (there is an option in the editor to turn this off). You can have calibre regenerate this page . Click the "Tools" in the menu and then "Add cover". You will be prompted to choose the image for the cover and there is an option about whether to preserve the aspect ratio of the cover (the above does not). When you click OK, calibre will replace the existing titlepage.xhtml with a new version with sizing for the current cover image.

If you have a lot of these cases, you can use the Polish books tool to update the covers in a batch. Or if you do the conversion after updating the cover in the library, it will use that when building the epub and it should all be correct.
davidfor is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cover size - epub what's a good size? christopher22 Calibre 3 01-19-2019 04:56 PM
Sorting small ebooks in the library | Change the file size column to KB? Kartoffelr Library Management 7 04-12-2015 06:20 AM
Epub to Mobi conversion - cover image disappears from Kindle library mujuw Conversion 1 11-21-2013 07:01 AM
ePub font size is so small - was not a converted file, BTW paulak Conversion 3 04-19-2011 06:22 AM
Small font size with epub in latest software. timt1961 HanLin eBook 7 09-21-2009 06:55 AM


All times are GMT -4. The time now is 04:16 PM.


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