Loading
Salesforce Enforces New Security Requirements in Summer 2026Read More
Extend Salesforce with Clicks, Not Code
IMAGEPROXYURL

IMAGEPROXYURL

Securely retrieves external images and prevents unauthorized requests for user credentials.

Use

<apex:image value="{!IMAGEPROXYURL("http://exampledomain.com/pic.png")}"/> and replace http://exampledomain.com/pic.png with your image.

Tips

  • Use IMAGEPROXYURL for all images hosted on servers you don’t control.
  • The rendered image URL can change at any time. Don’t copy and paste it anywhere.
  • Don’t use the rendered image URL outside of Salesforce.
Function Example
Function Example
<apex:image id="salesforce-twitter" 
value="{!IMAGEPROXYURL("https://pbs.twimg.com/profile_images/1014182734606897153/JfveQU3Z_400x400.jpg")}" 
   alt="Salesforce on Twitter" />

This IMAGEPROXYURL function retrieves and displays an image from Twitter’s image host, an external source. This function loads the Salesforce Twitter profile image over HTTPS. This function also prevents the image from making unauthorized requests for user credentials.

 
Loading
Salesforce Help | Article