---
schema_version: "1"
id: e0ffa9292107cb6ce769bb7ca598eb9183c991ae6b63a76906cd6358cc8de76f
title: IMAGE
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/customize_functions_image.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.customize_functions_image.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2500ef6a873170e38d22fe1296c1cd6e86ea6ecf799f0e0bad300015673c4b94
description: Inserts an image with alternate text and height and width specifications.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# 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 `width` parameters.
- 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.

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_example.png)

Example `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.