aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Can I embed a hyperlink in a GIF file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic
Author

Can I embed a hyperlink in a GIF file?

Namitha karupaiya
Ranch Hand

Joined: Mar 10, 2004
Posts: 89
Can I embed a hyperlink (using an image editing software) in an image file (GIF) without cahnging the file format?

Thanks.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18903
    
    8

There would not be any point in doing that unless programs that displayed GIFs could interpret an included hyperlink. So I tracked down the GIF specification. It does not mention URLs or links as far as I can see.
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
You can put an image map behind the picture so different zones of the image go to different links. The experts may whip me for this, but I've only done it with FrontPage and didn't even look at the generated HTML so I can't tell you how to do it the hard way.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Namitha karupaiya
Ranch Hand

Joined: Mar 10, 2004
Posts: 89
I mentioned about a GIF format but not a HTML format. If you make hyperlink to an image in Frontpage, can you extract that image and save it in a GIF format without giving up the hyperlinks?

(Note: Most of the image editing softwate support a feature called "image map", which makes it possible to give hyperlinks to images and store that file in HTML format)

Thanks.
 
 
subject: Can I embed a hyperlink in a GIF file?