Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 11-10-2013, 03:39 AM   #1
MelBr
Zealot
MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.
 
Posts: 105
Karma: 414068
Join Date: Feb 2013
Device: iPad Pro, Kobo Aura One
Stretched out images in an ePub (textbook)

Hi all,

I have an issue with all of the images in my textbook looking stretched. It just looks horrible and, frankly, it's unusable because it looks so bad. I've tried various viewers and images look stretched out in all of them. I've included the screenshot from Calibre.

I've gone through the source and images are included as:

Code:
<p class="calibre1"><a id="filepos5072701"></a><img alt="Image" src="images/01268.jpg" class="calibre1302"/></p>
and CSS for that looks like:
Code:
.calibre1 {
    display: block;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    margin-top: 1em;
    text-align: center;
    text-indent: 1.5em
    }

.calibre1302 {
    height: 1503px;
    width: 1706px
    }
The result is the pic that looks stretched out as the screenshot below.

Is there a way to tell viewers to size images proportionally so I can read what they're saying? Also, considering this book has 1000+ images, what's the easiest way of accomplishing that?

THANK YOU!
Attached Thumbnails
Click image for larger version

Name:	stretch.jpg
Views:	508
Size:	101.7 KB
ID:	114940  
MelBr is offline   Reply With Quote
Old 11-10-2013, 03:58 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,546
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by MelBr View Post
Is there a way to tell viewers to size images proportionally so I can read what they're saying? Also, considering this book has 1000+ images, what's the easiest way of accomplishing that?
Don't specify any width or height and instead use "max-width:100%; max-height:100%;" (although I'm sure some readers will have problems with that, in that case use only one or the other). Make sure there's no "width:100%" or "height:100%" in any of the parent styles affecting the <img>.
Jellby is offline   Reply With Quote
Advert
Old 11-10-2013, 10:54 AM   #3
MelBr
Zealot
MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.
 
Posts: 105
Karma: 414068
Join Date: Feb 2013
Device: iPad Pro, Kobo Aura One
Jellby, that fixed it! Thank you so much!
MelBr is offline   Reply With Quote
Old 11-10-2013, 06:31 PM   #4
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
What is the format of the original source document? A Microsoft Word document?

Where did you get these images from? Are a lot of these images charts/graphs inside of the book? Did you generate these yourself?

If you have 1000+ images, and if you have access to all the source images (you generate them yourself), then perhaps PNG might better suit you than JPG (and make your EPUB WAY smaller in filesize, while making the images much higher quality/crisper).

See one of my posts/samples of a JPG/PNG size/quality comparison of a high resolution graph:

https://www.mobileread.com/forums/sho...5&postcount=26

The PNG is ~2/3rd the size, and the highly optimized PNG of the graph is ~1/3rd the size, and much higher quality than the JPG.

Is this EPUB being given away for free (on your site?) or will this be sold (your site? Amazon? B&N?)?

Ugh.. I am just thinking of the bloat/unmaintainable code that is in this EPUB... I see the Calibre CSS classes are numbering in the THOUSANDS range.
Tex2002ans is offline   Reply With Quote
Old 11-10-2013, 08:38 PM   #5
MelBr
Zealot
MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.
 
Posts: 105
Karma: 414068
Join Date: Feb 2013
Device: iPad Pro, Kobo Aura One
Tex2002ans,

I have no idea what the source document is. I got it like this from publisher and they clearly converted it to ePub through Calibre. I don't have the source images but I have reduced the size of ePub by about 2.5x (it was originally around 280Mb) with a jpeg reduction tool so it's not so bad.
MelBr is offline   Reply With Quote
Advert
Old 11-10-2013, 09:18 PM   #6
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by MelBr View Post
I have no idea what the source document is. I got it like this from publisher and they clearly converted it to ePub through Calibre. I don't have the source images but I have reduced the size of ePub by about 2.5x (it was originally around 280Mb) with a jpeg reduction tool so it's not so bad.
Oh ok... I thought that this was a textbook you are writing, not just an EPUB you purchased. I hate when you spend perfectly good money on a hideous Calibre conversion such as this.

Really disappointing that they didn't pay to have a proper ebook conversion done.
Tex2002ans is offline   Reply With Quote
Old 11-10-2013, 09:44 PM   #7
MelBr
Zealot
MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.
 
Posts: 105
Karma: 414068
Join Date: Feb 2013
Device: iPad Pro, Kobo Aura One
Quote:
Originally Posted by Tex2002ans View Post
Oh ok... I thought that this was a textbook you are writing, not just an EPUB you purchased. I hate when you spend perfectly good money on a hideous Calibre conversion such as this.

Really disappointing that they didn't pay to have a proper ebook conversion done.
You know, the hardcover of this textbook is close to 9lbs in weight (8.7lbs = 4Kg). And I have 2-4 books like that per semester. My iPad weighs the same no matter how many books I load up. So I don't mind buying even crappy conversion as long as the text flows and I can enlarge letters and do search (i.e. it's not just a scan) .

This fix was pretty simple.
MelBr is offline   Reply With Quote
Old 11-11-2013, 05:01 AM   #8
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
What publisher is that? Just to know which one to avoid...
Toxaris is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Glo EPUB images different from Title incognizant Kobo Reader 7 12-19-2012 06:11 AM
Stretched images in ebook viewer? ohemeffgee Calibre 10 11-14-2012 02:12 AM
Images in EPUB books spaze ePub 28 03-06-2011 10:32 PM
ePub with Images prdufresne Calibre 10 12-04-2010 01:55 AM
Extracting images from an ePub MacEachaidh Sigil 2 11-08-2010 09:50 AM


All times are GMT -4. The time now is 05:41 PM.


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