02-01-2016, 01:12 PM | #1 |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
scaling images for Kindle on iOS
I have an image used as a section divider between paras of text.
I wanted it to be 1.5 times the height of body text. The image is a png, 145x150 pixels. I make an ePub using this code: <div> <img alt="*" class="section" src="../Images/sword.png"/> </div> and the css defn is .section { height: 1.5em; display: block; margin-left: auto; margin-right: auto; margin-top: 2em; } This works fine in epub. I convert to mobi using Amazon's Kindle Previewer. This also works fine on Kindles and Mac Kindle readers. But in iOS on iPad and iPhone, the image is apparently not scaled and appears full size, or at any rate much larger than 1.5 em. How then do I make it scale on iOS as well? |
02-01-2016, 02:10 PM | #2 |
Grand Sorcerer
Posts: 6,502
Karma: 84500001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Are you side loading a MOBI file to the Kindle for iOS app? If so, then don't do that. The iOS app doesn't support the newer KF8 format and will fallback to the older, less flexible format contained in the MOBI file created by the previewer. You need to instead create and side load an AZK file.
ETA: If you still want to use the MOBI then you may be able to make it work by specifying width instead of height. I believe the older format supports that. Last edited by jhowell; 02-01-2016 at 03:20 PM. |
02-01-2016, 10:37 PM | #3 |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Thanks.
Yes, that's what I've been doing. So I tried making an AZK. I don't have an iOS device so I have to send it to someone to test, will know if it works tomorrow. Is there any way to preview AZK without an actual iOS device? In spite of having a huge program folder 500 MB in size, the stupid Kindle Previewer doesn't preview AZK. I remember an earlier version did. I'll try that too. I was wondering if it was the units, ems are understood okay in mobi and azk? |
02-02-2016, 04:35 AM | #4 |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Is there a reason you don't use margin-top to achieve this result? Seems more straightforward, and doesn't run the risk of looking odd if a reader should choose white on black for some reason.
|
02-02-2016, 10:17 AM | #5 |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
The image isn't (just) a spacer, it's a Chinese character specified by the publisher.
Last edited by AlanHK; 02-02-2016 at 11:12 AM. |
02-03-2016, 06:01 AM | #6 |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Ah! Sorry.
(I do use small images for publisher's colophon -- one of them a Chinese character, in fact -- and I once used a hand-drawn sunburst as a section break in a novel. I kept the physical dimensions small. Worked great on the KF8 devices, acceptable (though just barely) on the old KF7 devices. I am less certain about IOS, though they look fine on my iPhone 4.) |
02-03-2016, 06:52 AM | #7 |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Scaling images with SVG wrapper | Pablo | ePub | 4 | 07-07-2015 01:44 PM |
Does Kindle for iOS v4.5.2 (latest vers) actually support images up to 5mb or not? | CindiNY | Kindle Formats | 0 | 12-02-2014 01:00 PM |
PRS-T1 Scaling Images in epubs | mochaiso | Sony Reader | 4 | 06-08-2012 12:33 AM |
problem scaling images | paola | ePub | 11 | 05-12-2011 02:20 AM |