View Single Post
Old 09-07-2011, 02:18 PM   #6
adv_dp_fan
Zealot
adv_dp_fan will blow your mind, man!adv_dp_fan will blow your mind, man!adv_dp_fan will blow your mind, man!adv_dp_fan will blow your mind, man!adv_dp_fan will blow your mind, man!adv_dp_fan will blow your mind, man!adv_dp_fan will blow your mind, man!adv_dp_fan will blow your mind, man!adv_dp_fan will blow your mind, man!adv_dp_fan will blow your mind, man!adv_dp_fan will blow your mind, man!
 
Posts: 103
Karma: 57138
Join Date: May 2010
Device: Sony 505, iPad 1 & 3, Galaxy Note 8.1
Quote:
Originally Posted by AlexBell View Post
Thanks for your comments. I don't set the image size in the ePubs I do, I just set a percentage of the screen width.

I don't for a moment doubt your accuracy regardin iBooks behaviour, but I'm not sure that your explanation is correct. Since my last post I've used a different image in the same place - same markup - and it does not expand. And I've used the this same image on the next 'page' set at a smaller percentage, and it does not expand and appears at the different percentage.

Could you give me a reference please to iBook's settings and behaviour? Is there an 'iBooks manual'?
There is an "iBooks manual" but you have to have to be set up as a publisher with Apple to get a copy. I'm an Apple developer and they won't even let me have a copy. I have read it though from a friend who is a publisher.

Is your second working image the exact same dimensions as the first image that doesn't work? If it isn't then that would be one reason you see a change.

The only way I have been able to get images to work properly in iBooks is to set a style with a "width: XXpx; height: XXpx" of whatever size I wanted to use and then wrap the <img> in a <div> that uses the above style and setting the <img> style to 100%.

I got this from Elizabeth Castro's blog that was linked to you above. After reading her comments and playing around with it I finally got it to work for my epubs. Images in iBooks are a pain because Apple wants to display the image full size no matter what you tell the image size constraints to be in the tag.
adv_dp_fan is offline   Reply With Quote