Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-14-2012, 02:35 PM   #1
senordustball
Junior Member
senordustball began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Oct 2012
Device: Nook simple touch
Epub Images will not fit on Nook screen

Hello,

I converted a pdf through ABBYY Fine reader to epub. The problem that I have is that all the images are too big to fit on the screen of my Nook Simple touch.

I tried converting from EPUB to EPUB through Calibre to see if this would fix the problem but the problem carried through.


I tried many things to get the images to fit on the screen but none of them have worked so far. Among these I re-sized the images in the epub file to be smaller than the screen width but still they kept showing up oversized to the screen.
I am not very familiar with HTML Code so maybe there is something there that I'm overlooking, hopefully somebody can help me figure this out.

Here's the code for a image in my epub file, maybe somebody can spot what's keeping the images from fitting on the Nook's screen:


<p>...</p>
<div>
<div>
<img src= “main-13.png" alt style= “width: 399pt; height: 582pt; -webkit-column-break-inside: avoid; max-width: 466px; -webkit
column-break-before: always; max-height: 640px; display: block; calibre_f3fa75ca98eb4413a4ee413f20160226= “12”>
</div>
</div>
senordustball is offline   Reply With Quote
Old 10-15-2012, 09:22 PM   #2
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 2,880
Karma: 4200035
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"/AuraH2O
Calibre should automatically scale images to a suitable size for your reader during the conversion process. Look on the Convert - PageSetup page in the Output profile box and choose the option which best describes your device.

Note that using the 'Tablet' option will not rescale images at all.
jackie_w is online now   Reply With Quote
Old 10-20-2012, 06:03 PM   #3
senordustball
Junior Member
senordustball began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Oct 2012
Device: Nook simple touch
I tried calibre many time but it didn't work. But I've figured out the problem:

ABBYY Fine Reader sets up a "Class" which sets the image size for each individual image, and calibre just leaves those alone when it does its conversion. Here's an example of the class table:

img.sgc-48 {width:429pt;height:590pt;}
img.sgc-47 {width:426pt;height:586pt;}
img.sgc-46 {width:428pt;height:395pt;}
img.sgc-45 {width:428pt;height:582pt;}
img.sgc-44 {width:422pt;height:592pt;}
img.sgc-43 {width:246pt;height:336pt;}
img.sgc-42 {width:429pt;height:597pt;}
img.sgc-41 {width:413pt;height:586pt;}
img.sgc-40 {width:424pt;height:578pt;}


To get the images to fit I simply either the Height or the Width to 100% and the other to AUTO and that fixed the issues see below:

img.sgc-48{width:auto;height:100%;}
img.sgc-47{width:auto;height:100%;}
img.sgc-46{width:100%;height:auto;}
img.sgc-45{width:auto;height:100%;}
img.sgc-44{width:auto;height:100%;}
img.sgc-43{width:100%;height:auto;}
img.sgc-42{width:auto;height:100%;}
img.sgc-41{width:auto;height:100%;}
img.sgc-40{width:auto;height:100%;}


Worked like a charm!
senordustball is offline   Reply With Quote
Old 10-20-2012, 06:26 PM   #4
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: 37,860
Karma: 18755150
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by senordustball View Post
I tried calibre many time but it didn't work. But I've figured out the problem:

ABBYY Fine Reader sets up a "Class" which sets the image size for each individual image, and calibre just leaves those alone when it does its conversion. Here's an example of the class table:

img.sgc-48 {width:429pt;height:590pt;}
img.sgc-47 {width:426pt;height:586pt;}
img.sgc-46 {width:428pt;height:395pt;}
img.sgc-45 {width:428pt;height:582pt;}
img.sgc-44 {width:422pt;height:592pt;}
img.sgc-43 {width:246pt;height:336pt;}
img.sgc-42 {width:429pt;height:597pt;}
img.sgc-41 {width:413pt;height:586pt;}
img.sgc-40 {width:424pt;height:578pt;}
Every one of those dimensions will fit on the screen of a nook. There is no reason for them not to fit.
JSWolf is offline   Reply With Quote
Old 10-26-2012, 10:41 AM   #5
senordustball
Junior Member
senordustball began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Oct 2012
Device: Nook simple touch
Well I can assure you that they didn't fit. Before I came up with the "100%" and AUTO fix I played around with the width and height values, the biggest width I could get to fit on the Nook screen was about 200pt. Maybe there is some other factor at play but the images did not fit on the screen with the original values.
senordustball is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sphinx-generated ePub with images seems to crash Nook Classic? victorhooi Barnes & Noble NOOK 0 02-01-2011 04:12 AM
Fit PDF to screen height Hugo Amazon Kindle 15 01-21-2011 02:07 AM
K3 - Fit to screen (width) for PDF nuke Amazon Kindle 0 09-30-2010 10:27 AM
How to center/fit page width SVG images with <OBJECT> amoroso ePub 0 07-31-2010 12:48 PM
Images too wide for Nook Screen js4c Calibre 7 07-29-2010 05:46 PM


All times are GMT -4. The time now is 07:45 PM.


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