Site Reference Forums

You are not logged in.

#1 2006-12-14 09:39:25

MrStitch
Member
Registered: 2006-10-24
Posts: 1072
I've been thanked 11 times.

Thank me 
Buy me a beer

Alt information

Is it possible to embed alt information into an image? Or is this strictly an html tag issue?

Offline

 

#2 2006-12-14 14:02:20

Mutilated1
Member
From: Pell City, Alabama USA
Registered: 2004-11-17
Posts: 2068
I've been thanked 5 times.

Thank me Website
Buy me a beer

Re: Alt information

well technically alt information is just an attribute of the img tag, but several image file formats allow you to embed arbitrary data, so you could embed something extra possibly if you wanted to.  But even if you did that, other applications won't know what to do with it and nobody will be able to read it unless they're expecting and looking for it.

I'm not talking about steganography per se, rather some image file formats have optional fields and offsets that you can use or not


CANNIBAL CORPSE - DEATH METAL - 15 YEAR KILLING SPREE!
TombOfTheMutilated.NET - Destroying The Minds of America's Youth Since 2001

Offline

 

#3 2006-12-14 14:14:21

MrStitch
Member
Registered: 2006-10-24
Posts: 1072
I've been thanked 11 times.

Thank me 
Buy me a beer

Re: Alt information

I'm looking at it from an SEO point of view.

The site we have has been in operation for several years before I got it. It happens to have an affiliate program, where the images are hot-linked from our server, to the affiliates page. The affiliate gets the code from their login screen.

However, the alt attributes weren't set up very well from an SEO perspective from the beginning. I've fixed it since then, but would like all those other pages to load with the updated alt data.

I doubt this is feasible but worth asking.

Offline

 

#4 2006-12-14 15:03:51

Angel Eyes
Member
Registered: 2006-09-19
Posts: 82
I've been thanked 0 times.

Thank me 

Re: Alt information

How about a code feed?

you give out a php (for example) file that calls a page on your server to ask for the code to be used.

then you can supply any code you want.

you could use javascript, but that would mean that there would be no real text in the source code

gloria

Offline

 

#5 2006-12-15 18:04:51

paupos
New member
Registered: 2006-12-15
Posts: 1
I've been thanked 0 times.

Thank me Website

Re: Alt information

I just started doing this.

Short answer: from just HTML, it can't be done.

But it's fairly easy using Perl or PHP, once you've added XMP data tags to the image itself. XMP - Extensible Metadata Platform - a metadata spec. by Adobe but an open standard, and growing in popularity, you can embed any amount of descriptors into most images. Typical XMP data includes title, description, keywords, creator, copyright, though you can add your own custom types of metadata, as well. Good intro at http://en.wikipedia.org/wiki/Extensible … a_Platform.

Image formats supported: JPEG, JPEG 2000, GIF, PNG, TIFF, and anything by Adobe. I use PixVue - it's free, and it doesn't clutter my images with metadata I don't want (Adobe's products, not surprisingly, do). Two clicks apply my standard template to all selected images, and then I edit the title, description, keyword tags manually.

Perl's Image::Exiftool handles XMP metadata, as does the PHP Metadata Toolkit (Google them), though the latter doesn't handle images created in Photoshop CS2. For me, that doesn't matter. I mainly use the PHP Metadata Toolkit to pull information from the images and deliver them to my pages. Or you could use such routines to draw this data from the image and log it to your database of choice.

FWIW, I suspect image metadata will become something that image browsers will look for (if they don't already), and that if you derive web traffic from Google Images or similar search engines, you'll get more hits from well-annotated images.

Final note: Exif metadata is old, inflexible, has idiosyncrasies, and works only with 24-bit TIFF and JPG. IPTC metadata may be used, but is not extensible, and IPTC itself has embraced the XMP standard ...

Offline

 
Never
Sponsored Results


Board footer

Powered by PunBB
© Copyright 2002–2008 Rickard Andersson