[PATCH] HTML coder output

"Daniel Richard G." <[email protected]>
Newsgroups gmane.comp.video.image-magick.devel
Message-ID <[email protected]>
Attached is a patch to the HTML output coder of 6.3.4/SVN, to make it 
generate valid XHTML 1.0 Strict. I believe most folks generating HTML today 
will want it conformant to this more modern spec; for those who need 
old-school HTML4, postprocessing XHTML->HTML4 is a lot easier than 
HTML4->XHTML. (Plus, having valid XML means you can use XSL et al.)

You'll notice that this patch adds alt="" attributes to the <area> elements 
(required by the spec). I wanted to put the image filename in there, but 
couldn't figure out what was going on between the "url" and 
"image->filename" variables.

An aside: If I could make one request for this coder, it would be to allow 
selecting the image map format (with the -format option?), instead of 
hard-coding it to GIF. My application makes JPEG format mandatory, and the 
only current workaround is to generate the image map and HTML separately.


--Daniel


-- 
NAME   = Daniel Richard G.       ##  Remember, skunks       _\|/_  meef?
EMAIL1 = [email protected]        ##  don't smell bad---    (/o|o\) /
EMAIL2 = [email protected]      ##  it's the people who   < (^),>
WWW    = http://www.******.org/  ##  annoy them that do!    /   \
--
(****** = site not yet online)

_______________________________________________
Magick-developers mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.