![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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> 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 } 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! |
![]() |
![]() |
![]() |
#2 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,546
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
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>.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 414068
Join Date: Feb 2013
Device: iPad Pro, Kobo Aura One
|
Jellby, that fixed it! Thank you so much!
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#5 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Really disappointing that they didn't pay to have a proper ebook conversion done. |
|
![]() |
![]() |
![]() |
#7 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 414068
Join Date: Feb 2013
Device: iPad Pro, Kobo Aura One
|
Quote:
This fix was pretty simple. |
|
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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...
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |