Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 06-25-2015, 01:37 PM   #1
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
Percent vs picas (or mm) for Kindle

For the first time, I want to use a series of mug shots in a book. At present I have them sized 20% wide, height=auto. I appreciate that this can turn out fairly ragged in a K1, K2, or DX Kindle, and perhaps in Apple IOS. What's the best way to go? Shall I ignore the Mobi 7 gang, revert to absolute measure, or futz about with media calls? (I don't like the last because they would require me to have separate builds for Amazon and the rest of the digital world.)
Notjohn is offline   Reply With Quote
Old 06-25-2015, 06:01 PM   #2
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,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
If you use absolute measures, you have to make sure your images will fit properly on ALL devices that have a Kindle app such as an iPhone. Can you do that? a % makes sure it fits based on the size of the screen. Absolute means is might not fit.
JSWolf is offline   Reply With Quote
Advert
Old 06-26-2015, 07:13 AM   #3
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
I'm told that the early Kindles will respect em measures if they are even (or will round them up). I often use 130 picas for a thumbnail on a web page. What would be the rough equivalent in ems?

(Or the equivalent of 20%?)
Notjohn is offline   Reply With Quote
Old 06-26-2015, 09:07 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: 79,750
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 Notjohn View Post
I'm told that the early Kindles will respect em measures if they are even (or will round them up). I often use 130 picas for a thumbnail on a web page. What would be the rough equivalent in ems?

(Or the equivalent of 20%?)
Just remember, anything you do with graphics has to work on a small 4" iPhone or you've botched your eBook and/or website. Now, as picas to ems, try a Google search. I have never used picas because they aren't useful at all.
JSWolf is offline   Reply With Quote
Old 06-27-2015, 06:00 AM   #5
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
I am enchanted to see that my iPhone 4 measures 640 pixels wide. That's not terribly far off from the latest Fire HD 7 inch (800 pixels) and wider than the early models -- or the first generation Kindle, for that matter (600 pixels).

Indeed, it's only the more recent 8.9 inch tablets that have blown up the standard, at 1600 pixels wide.
Notjohn is offline   Reply With Quote
Advert
Old 06-28-2015, 05:56 AM   #6
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
OMG, did I really say picas? I meant pixels....

>I often use 130 picas pixels for a thumbnail on a web page.
Notjohn is offline   Reply With Quote
Old 06-28-2015, 06:27 AM   #7
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 73,941
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Never use pixels as a measurement in ebooks.

[EDIT: Whoops, I was wrong. I still wouldn't use it often, but it isn't as bad as I'd thought, and there are some places where it's the best option.]

Last edited by pdurrant; 06-28-2015 at 04:36 PM.
pdurrant is offline   Reply With Quote
Old 06-28-2015, 07:10 AM   #8
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,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I don't know how it is for Kindle, but in ePubs pixels are absolute units, just like millimeters or inches, and they are not equivalent to the device's pixels. In particular, they should not change with the device resolution. I think the definition is exactly 1 in = 96 px.

That, at least is what the spec says. I've seen devices with "creative" definitions of what a "mm" is, so I'm not surprised there are devices that translate "px" to device pixel too.
Jellby is offline   Reply With Quote
Old 06-28-2015, 09:17 AM   #9
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 73,941
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by Jellby View Post
I don't know how it is for Kindle, but in ePubs pixels are absolute units, just like millimeters or inches, and they are not equivalent to the device's pixels. In particular, they should not change with the device resolution. I think the definition is exactly 1 in = 96 px.

That, at least is what the spec says.
Could you point me to the part of the spec that says that. I've found in ePub 2.0.1:

Quote:
3.2.3: Length
All non-zero coordinate and size values must have specified units. All units defined by CSS1 and CSS2 are supported:
px Pixels
the CSS2 specification has this to say about pixels:

Quote:
4.3.2 Lengths

Lengths refer to horizontal or vertical measurements.

[snip]

There are two types of length units: relative and absolute. Relative length units specify a length relative to another length property. Style sheets that use relative units will more easily scale from one medium to another (e.g., from a computer display to a laser printer).

Relative units are:

em: the 'font-size' of the relevant font
ex: the 'x-height' of the relevant font
px: pixels, relative to the viewing device
Note that pixels are explicitly defined as a relative unit, based on the viewing device.

It may be that some popular ePub renderers choose to interpret pixels as 1/96 inch, but I couldn't find that in the spec. I'd be happy to be wrong.
pdurrant is offline   Reply With Quote
Old 06-28-2015, 09:57 AM   #10
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,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
If you scroll down a bit the CSS 2 spec, it is more specific about "px":

Quote:
Pixel units are relative to the resolution of the viewing device, i.e., most often a computer display. If the pixel density of the output device is very different from that of a typical computer display, the user agent should rescale pixel values. It is recommended that the reference pixel be the visual angle of one pixel on a device with a pixel density of 90dpi and a distance from the reader of an arm's length.
But in the CSS 2.1 spec, "px" is already defined as an absolute unit:

Quote:
px: pixel units — 1px is equal to 0.75pt.
So, yes, strictly speaking ePub 2.0.1 uses CSS 2, where "px" is not hardwired, but it's still not the device pixel. In CSS 2.1 (and I assume CSS 3 too), this was fixed to 1/96 in, which roughly agrees with the recomendation of CSS 2.
Jellby is offline   Reply With Quote
Old 06-28-2015, 02:55 PM   #11
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 73,941
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by Jellby View Post
If you scroll down a bit the CSS 2 spec, it is more specific about "px":



But in the CSS 2.1 spec, "px" is already defined as an absolute unit:



So, yes, strictly speaking ePub 2.0.1 uses CSS 2, where "px" is not hardwired, but it's still not the device pixel. In CSS 2.1 (and I assume CSS 3 too), this was fixed to 1/96 in, which roughly agrees with the recomendation of CSS 2.

Many thanks! I should indeed have read on further.
pdurrant is offline   Reply With Quote
Old 06-28-2015, 04:34 PM   #12
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by pdurrant View Post
Never use pixels as a measurement in ebooks.
Pixel is the unit of choice for W3C to use to autoscale images based on ppi. Read about this in our wiki https://wiki.mobileread.com/wiki/CSS_pixel#The_CSS_pixel

Dale
DaleDe is offline   Reply With Quote
Old 06-29-2015, 05:07 AM   #13
SBT
Fanatic
SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.
 
SBT's Avatar
 
Posts: 580
Karma: 810184
Join Date: Sep 2010
Location: Norway
Device: prs-t1, tablet, Nook Simple, assorted kindles, iPad
I can definitely confirm that on Kindle Touch and Kindle Paperwhite 2, the pixels are not device pixels. If the previewer is to be trusted, nor is Voyage. However, a kindle e-ink pixel seems to be larger than a kindle fire pixel.

I've struggled with this particular display problem myself. Use fixed pixel dimensions, and the proportions only look OK on certain devices. Use relative dimensions, and it looks pixellated and/or silly on large screens, and miniscule and silly on small screens. I really miss support for the max-width attribute on the kindle at times like this.

I normally try to set a min-width in pixels to ensure it will look sensible on small screens, and give the width itself in %, so the layout will be OK on "normal", 6-inchish devices, and not too silly on 10-inchers. People reading on computer screens will just have to live with the silliness of the image dimensions...

(That is, unless the image contains text. Then of course em's would be the way to go.)
SBT is offline   Reply With Quote
Old 06-29-2015, 06:07 AM   #14
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
Thank you, SBT. You have stated my problem precisely.

And thank you, everyone. This has been most enlightening, even though I'm not surely where it leaves me.... It would never have occurred to me that Gertrude Stein was wrong, and that A Rose Is a Rose Is Not Always A Rose.
Notjohn is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Glo Library Percent Incorrect GreatCanadian Kobo Reader 5 02-21-2013 11:40 AM
33⅓ percent cybmole Sigil 26 10-23-2011 06:48 PM
50 percent off at Champagne Books Catlady Deals and Resources (No Self-Promotion or Affiliate Links) 0 07-27-2011 11:20 AM
Amazon to enact 70 percent revenue share for Kindle periodicals carld News 8 11-09-2010 09:35 AM
20 Percent Off @ Sony MickeyC Deals and Resources (No Self-Promotion or Affiliate Links) 16 01-27-2009 01:45 PM


All times are GMT -4. The time now is 12:24 AM.


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