How to Add URLs to Pictures
Add a URL to a picture if your picture represents a web page or entire website. Companies, for example, often include website URLs inside product images so that consumers will know where to find out more about the product just by viewing the image. You can add URLs within the picture itself for offline viewing or as a mouseover or interactive link for Internet viewing.
Things You'll Need
- Graphic design software
- HTML or text editor
Graphical URL Addition
Open your picture in a graphic design program.
Click your mouse near the top or bottom of the image where you want to insert the URL. Choose an area that only contains image background as your viewers will not see this area clearly once covered with text. For a photograph taken outside, for example, insert the text onto the sky area.
Select the option within your graphic program to add text.
Choose a text color that stands out against the image background color. For a photograph taken at night with a dark background, for example, choose "white" as your text color.
Type the URL into the text area. Adjust the size of the text so that it fills up most of the image background, but does not extend beyond the picture or into the main image details.
Save the image using with a new name, such as photoname-URL.jpg, so that you do not override the original unedited image.
Online URL Addition
Open the web page HTML code where you wish to insert the picture.
Insert the picture within the HTML using the "img src" tag as follows:Replace the word "yorupicture.jpg" with the name of your image.
Add the URL to the image so that when visitors see the URL when they move their mouse over the image using the "alt" tag as follows:
Add an interactive URL to the picture so that when visitors click the image, the URL opens in the browser window.Use the following code which includes both the mouseover and clickable URL within the picture: