![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
|
Image Alt tag
If an image is missing an img alt tag is supposed to be displayed instead of the image, but it's not getting displayed if the image is missing, is there any way to 'turn it on' ?
Say the html is as follows: Code:
<img alt="Chapter 1" src="../Images/ch01.jpg" title="Chapter 1" /> I would like to get it to do so without having to go through and recode all the image tags. |
![]() |
![]() |
![]() |
#2 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 128
Karma: 238654
Join Date: Aug 2009
Device: Kobo Mini (4GB), Nook Classic wi-fi, iPod Touch (Bluefire Reader)
|
I think whether the alt attribute displays or not is up to the reader software. According the ePub spec, the alt tag may be used by the reader (as opposed to must), which means it's another thing in the spec that is optional so may or may not be supported. As an alternative, you could try the title attribute (although that's optional too).
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,238
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The thing is, why do we need an alt tag? If the ePub is built properly, the image will be there anyway and display.
Last edited by JSWolf; 03-19-2012 at 04:40 PM. |
![]() |
![]() |
![]() |
#4 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
In a well-designed reader, you'd be able to enable/disable images and get the image or the alt text... But I know of no reader like this, and probably most readers will just show blank (or crash) if an image file is missing.
|
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
|
A friend has got a college textbook which has a lot of superfluous pics for fancy text (especially chapter/section headings) which I was hoping could easily be trimmed, but still leave the caption/title as a guide to what it was - there's loads and a few are quite large filesize wise for what's actuall being displayed. In a browser it would be all well and good, but on a handheld reader is just silly.
I'll just run a search and replace and change the img tags to just display whatever is in the alt tag as a span with a class in which fontsize is doubled, then safely remove the images. On my Sony any missing images are just ignored, and don't display anything, at least it doesn't crash. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
![]() |
![]() |
![]() |
#7 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,914
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
The Alt Tag is read by the speech software and should contain a short summary of the image. ie 'Publisher Logo' |
|
![]() |
![]() |
![]() |
#8 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
That said, it is perfectly legal to have a blank alt tag (alt=""), and it is recommended when the image is purely decorative and does not need any explanation. The alt tag should not be a duplicate or a replacement of a caption.
|
![]() |
![]() |
![]() |
#9 |
Enthusiast
![]() Posts: 48
Karma: 10
Join Date: Aug 2011
Device: Ipad
|
Here's couple of annoying requirements from the newest edition of iBookStore Asset Guide 5.1.
For accessibility , the alt attribute for an image must be included; the value must be an appropriate replacement for the image. It should just be what you would have put in the prose if the image was not included , as shown in the following example: <p>The hillside was covered in poppies. <img src="images/page1/flowers.jpeg" alt="The poppies are red, orange, and yellow, and a winding path leads to a house."> A dog was asleep on the porch.</p> The following example is not as effective; the alt text only describes the image, instead of being a textual replacement for the image. When reading without the image, the text does not flow as well as the example above. <p>The hillside was covered in poppies. <img src="images/page1/flowers.jpeg" alt="A bunch of poppies and a house."> A dog was asleep on the porch.</p> The following alt attributes are not acceptable: alt="none", alt="nothing", alt="image", or alt="page 3". Leaving out the alt attribute is also not acceptable. The attribute alt="" is acceptable in cases where the image is decorative and does not have any content or meaning Personally I wish this was not necessary for iBooks publishing. I mean, if you make a fashion type eBook with lots of images. Visually impaired readers who need alt tags are not even consumers of this type of eBook. It's just a pointless time consuming addition to the production flow for some type of eBooks. Last edited by FunkeXMix; 01-15-2013 at 03:54 PM. |
![]() |
![]() |
![]() |
#10 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,238
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I was just looking at Eye of the World in getting it ready for reading. The maps you cannot have an appropriate alt for it. There are other graphics that are just decorations so alt tags should be removed. Apple is losing the plot and going over the deep end here.
|
![]() |
![]() |
![]() |
#11 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
As I said above, and as you repeat in your post, alt="" is perfectly valid and recommended in decorative images. But sometimes images are not just decorative, they may be a sample of hand-written text, a strange symbol, or even an illustration that's closely linked to the text ("and this is what he found when he opened the door: [here comes an illustration]"). For those cases you need to provide something meaningful in the alt attribute. For the rest, just use alt="". Apple is not requiring anything new, but they may be providing bad examples. |
|
![]() |
![]() |
![]() |
#12 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
|
|
![]() |
![]() |
![]() |
#13 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,238
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
A handwritten note can be rendered with an embedded handwriting font.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
HTML Meta tag for cover image URL? | MrPLD | Conversion | 5 | 01-29-2012 12:15 AM |
alt z does not work | mmm2m8r | Amazon Kindle | 1 | 04-10-2011 02:14 AM |
Adding an Owner tag to tag list? | Fangles | Library Management | 1 | 02-25-2011 02:32 AM |
Could somebody help with src and alt, please? | GillianMary | Sigil | 2 | 10-08-2010 08:12 AM |
No Alt-t for time! | schulzmc | Amazon Kindle | 2 | 02-24-2009 08:48 PM |