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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 06-05-2013, 11:06 PM   #31
Turtle91
Guru
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 669
Karma: 3807234
Join Date: Dec 2012
Location: Shannon, Ireland today
Device: iPhone 5/iPad 1&2/Surface Pro/Kindle PW
Try setting the width:6em (instead of height) and leave height:auto (or remove it as auto is default).

I know it is a little backwards to set width with a "height value" (em), but it works.
Turtle91 is offline   Reply With Quote
Old 06-06-2013, 02:05 AM   #32
eggheadbooks1
Connoisseur
eggheadbooks1 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametereggheadbooks1 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametereggheadbooks1 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametereggheadbooks1 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametereggheadbooks1 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametereggheadbooks1 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametereggheadbooks1 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametereggheadbooks1 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametereggheadbooks1 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametereggheadbooks1 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametereggheadbooks1 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 97
Karma: 12798
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
You're right. Completely counterintuitive but it works. Changed the em value from height to width. The images don't skew anymore when up- or down-sized, though 6em does not actually translate into 6 lines of text; more like five. Will tweak.

Well done.

Thanks,
Michelle
eggheadbooks1 is offline   Reply With Quote
 
Enthusiast
Old 06-06-2013, 02:54 AM   #33
Turtle91
Guru
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 669
Karma: 3807234
Join Date: Dec 2012
Location: Shannon, Ireland today
Device: iPhone 5/iPad 1&2/Surface Pro/Kindle PW
Yay!! Have fun!
Turtle91 is offline   Reply With Quote
Old 06-06-2013, 03:49 AM   #34
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: 5,999
Karma: 4346921
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by eggheadbooks1 View Post
though 6em does not actually translate into 6 lines of text; more like five. Will tweak.
That's because the line height is probably something like 1.2, and 6/1.2=5
Jellby is offline   Reply With Quote
Old 06-06-2013, 06:51 AM   #35
Tex2002ans
Evangelist
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: 444
Karma: 360271
Join Date: Jul 2012
Device: Nook
Quote:
Originally Posted by eggheadbooks1 View Post
The difference in size between the jpeg and png is about 30 - 40%. About half his images are line art or text only, the other half are continuous tone (where the jpeg is smaller and better than the png). Some are in-between, probably 256-color. The client sent me fairly large jpegs, most of which have had to be downsized for the ebooks, so I should be able to get a decent png.
Quote:
Originally Posted by eggheadbooks1 View Post
TI did a quick text of two images; the quality was nearly identical but the file size was about -30%.
I showed off some work I did with compression of charts here (Example chart goes from JPG ~130 KBs to Indexed/Compressed PNG at 44.5 KBs (and looks WAY cleaner)):

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

With black and white diagrams, the savings are even more pronounced than just these few color images (B&W/Grayscale/few colors compresses VERY well in PNG).

In this large project I am in the process of working on, I generated 175 very high quality (almost all were ~1200 px wide) PNGs of Tables/Charts/Diagrams. These compressed down to 9.10 MBs.

The equivalent 175 JPGs would be ~18 MBs (I just did a rough generation of JPGs from the original source). I could probably squeeze a few MBs out by optimizing the JPGs a little, but they will reach nowhere near 9.10 MBs.

JPG is a format built for "natural/photographic" images, and the algorithm is not the greatest when dealing with "artificial" type images.

When dealing with delivery fees and/or bandwidth costs for overly large book files, cutting needless MBs off of the book is very important!
Tex2002ans is offline   Reply With Quote
Old 06-06-2013, 07:18 AM   #36
mrmikel
Book Twiddler
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 1,934
Karma: 1405001
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
It would seem the most efficient would be some vector graphic format for such items, but I don't know how well they are supported.
mrmikel is offline   Reply With Quote
Reply

Tags
epub, frames, text box

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindlet The operator >> is undefined for the argument type(s) float, float twobob Kindle Developer's Corner 10 09-05-2012 12:50 PM
Image overlayed over text (but text visible if image disabled)? Kaylee Skylyn ePub 5 08-01-2012 05:27 PM
Why is image left justified when I link to it? steve2112 Kindle Developer's Corner 4 03-23-2012 02:53 AM
Gold box sale on K3 (Keyboard) Covers (2h 20m left) Wasp Woman Amazon Kindle 0 12-01-2011 06:42 PM
Left-justified text in a right-justified box Skeezix Conversion 4 11-15-2011 08:44 PM


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


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