You are here:
IMAGE
Inserts an image with alternate text and height and width specifications.
Use
IMAGE(image_url,
alternate_text, height,
width) and replace image_url with the full
path to the image. Replace alternate_text with the
string of text you want to appear when the image can’t be rendered for some reason.
This text can be used by screen reader software. Replace height with the
vertical size of the image in pixels. Replace width with the horizontal
size of the image in pixels.
For reports, images aren't automatically resized to fit into a report column. Use the height and width parameters to explicitly size the image so it fits into the column without being partially cut off.
Tips
- The height and width parameters are optional.
- Use a text string to replace the image_url and alternate_text parameters. Surround each text string in quotes.
- Use numbers to replace the height and
widthparameters. - Add images to your Documents tab if you want to display them elsewhere. For example, store the image of a product in a document folder, copy the URL to the document, and paste that URL in the image_url parameter of a formula field on the Products tab.
- If you use Internet Explorer, you sometimes must change your security settings so that Explorer doesn’t display a warning prompt when images use HTTP protocol. See the online help for Internet Explorer for instructions on changing your security settings.
- The IMAGE function cannot include the GETSESSIONID function as one of its arguments.
- The IMAGE function is available only in formula fields and email templates.
- You can’t display an image related to a contact in a custom formula field if it’s referenced through a person account.
HYPERLINK("ymsgr:sendIM?" &
Yahoo_Name__c, IMAGE("http://opi.yahoo.com/online?u=" & Yahoo_Name__c &
"&m;=g&t;=0", "Yahoo"))
This formula displays a clickable Yahoo! Messenger icon indicating if the person is logged on to the service. Users can click the icon to launch a Yahoo! Messenger conversation with the person. This example uses a custom text field called Yahoo Name on contacts where you can store the contact's Yahoo! Messenger ID.

