![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29
Karma: 496864
Join Date: Mar 2012
Location: Virginia
Device: none
|
images not displayed in iBooks and ADE
images display in Calibre and on the chrome browser.
only one repeated image works in ibooks and it has different CSS, so it must be something with the CSS. ADE is a mess, most images don't display, but some are floating under the text. div.fig { margin: 0 0 1em 1em; display: table; float: right; page-break-inside:avoid; } div.fig p { display:table-caption; caption-side:bottom; text-align: center; margin-top:2px; font-size: 0.75em; font-family:Verdana, sans-serif; } <div class="fig"> <img alt="photo" src="../Images/photo.jpeg" /> <p>caption</p> </div> thank you for your help! |
![]() |
![]() |
![]() |
#2 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29
Karma: 496864
Join Date: Mar 2012
Location: Virginia
Device: none
|
Hitch - yes they are display: table-caption - is that my ADE/iBooks problem? That was the only way I could figure out how to keep the caption with the table. Is there a better way that will work on Calibre, ADE, iBooks?
Thank you! |
![]() |
![]() |
![]() |
#4 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
There is nothing--save yourself the brain-damage now--that will keep captions together with anything. Images, figures, tables. If you can, you could make a table CELL, that would contain the caption; but as far as I know, the faux-property of "display:table" doesn't work in any eBook reader, ePUB or MOBI. If you put an image in a two cell table--one column wide--even THAT won't prevent the caption breaking from whatever it's beneath (above, etc.). eBooks simply aren't to that point yet. We use "break:avoid" (for whatever--divs, yadda), but that's to future-proof them. Someone will no doubt pipe up here and say that "such-and-such" supports that, but most don't. AND, I strongly suspect that's why your display is messed up. Hitch |
|
![]() |
![]() |
![]() |
#5 |
Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Except to make the caption part of the image, of course, e.g. with SVG. Of course, if you use SVG, you'll be limited to readers that support SVG. That should include most modern readers, but won't work with pre-KF8 Kindle models.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
![]() |
![]() |
![]() |
#7 |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Incorporating captions into images is simple if you have the tools (photoshop, gimp, others). These images can be jpg or png and should be fine on any reader. However, the learning curve can be steep. It's probably not worth the effort for someone not doing a lot of images.
|
![]() |
![]() |
![]() |
#8 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 344
Karma: 1222222
Join Date: Aug 2009
Location: Florida
Device: Sony PRS-505
|
Quote:
So, if I only want to add a caption to a picture I import the picture into PowerPoint, add the caption, group the picture and caption together and save it as a new picture (always keep the original!). I have seen no loss of quality (of course my eyesight isn't so great ![]() |
|
![]() |
![]() |
![]() |
#9 | |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Quote:
![]() I hadn't considered PowerPoint. There is no end To ingenuity. |
|
![]() |
![]() |
![]() |
#10 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,346
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
If anyone needs an example of the SVG method mentioned above:
Code:
<body style="background-color:black"> <div style="margin:0; padding:0; text-align:center"> <svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 881 1500" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink"> <image height="1500" width="881" xlink:href="../Images/map.jpg" /> <text text-anchor="middle" x="50%" y="40" style="fill:white; font-size:50px; font-family:serif">Caption</text> </svg> </div> </body> Cheers! |
![]() |
![]() |
![]() |
#11 |
Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
The nice thing about SVG is that most recent readers let you search for text inside an SVG image (unlike, for example, text in a bitmap image). So it is almost as nice as incorporating it into the outer HTML; the only cost is a little extra markup complexity, plus the need to include two copies of the image markup and caption text/markup if you're producing content for Kindle because KF7 readers can't grok SVG. (This is where writing a few lines of actual software code can be helpful.)
Last edited by dgatwood; 06-04-2015 at 12:16 AM. |
![]() |
![]() |
![]() |
#12 | |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Quote:
<div style="text-align: center; padding: 0pt; margin: 0pt;"> <svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 800 1169" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink"><image height="1169" width="800" xlink:href="../Images/bookcover.jpg" /></svg> |
|
![]() |
![]() |
![]() |
#13 | |
Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Quote:
Code:
<span class="kf8only">...</span> And you do the same thing in reverse for the fallback content, making it hidden for media type not amzn-mobi7. On the Mobi7 slice, obviously you don't have SVG, so you can't guarantee that the caption will be on the same page as the image, but there's not much you can do about that. |
|
![]() |
![]() |
![]() |
#14 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
I think I have ventured into territory above my pay grade....
|
![]() |
![]() |
![]() |
#15 |
Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
NO images from mobileread.com being displayed? | ryran | Feedback | 11 | 09-28-2011 05:29 AM |
Does iBooks and ADE respect opf:file-as ? | NicolasR | ePub | 1 | 02-08-2011 04:58 PM |
Hyperlinked images don't work in ADE | hpstricker | ePub | 6 | 11-26-2010 06:38 PM |
ePub, ADE and Images puzzle | pdurrant | ePub | 11 | 09-05-2009 10:02 AM |