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 02-01-2016, 01:12 PM   #1
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
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?
AlanHK is offline   Reply With Quote
Old 02-01-2016, 02:10 PM   #2
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
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.
jhowell is offline   Reply With Quote
Old 02-01-2016, 10:37 PM   #3
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by jhowell View Post
Are you side loading a MOBI file to the Kindle for iOS app?
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.


Quote:
Originally Posted by jhowell View Post
specifying width instead of height.
I'll try that too.

I was wondering if it was the units, ems are understood okay in mobi and azk?
AlanHK is offline   Reply With Quote
Old 02-02-2016, 04:35 AM   #4
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,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.
Notjohn is offline   Reply With Quote
Old 02-02-2016, 10:17 AM   #5
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by Notjohn View Post
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.
The image isn't (just) a spacer, it's a Chinese character specified by the publisher.
Attached Thumbnails
Click image for larger version

Name:	section.png
Views:	221
Size:	8.2 KB
ID:	146006  

Last edited by AlanHK; 02-02-2016 at 11:12 AM.
AlanHK is offline   Reply With Quote
Old 02-03-2016, 06:01 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,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.)
Notjohn is offline   Reply With Quote
Old 02-03-2016, 06:52 AM   #7
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by Notjohn View Post
I kept the physical dimensions small.
I'll try making the image itself smaller so it looks OK at 100%.
AlanHK is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 02:40 PM.


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