AX - Image
Overview
AX - Image is a Lightning App Builder component that displays images on your record pages, app pages, and home pages with full control over sizing, cropping, and positioning.
Use it to show product photos, profile pictures, logos, or any image from Salesforce—including Content Documents, static resources, or external URLs. Configure how images display, whether as thumbnails, full-width headers, or within card containers.
Perfect for visual record identification, branded page headers, or displaying dynamic images based on field values
Use this simple tutorial to learn the basics of the Image component and start building your use cases.
Use Cases
Product Page: Show a uniform product image.
Contact or User Page: Display a consistent profile photo.
Asset Page: Present a clear item image for verification.
Welcome Panel: Feature a branded banner or greeting image.
Team Spotlight: Highlight an employee with a thumbnail.
Promotion Highlight: Display a featured campaign image.
Configuration
Add the Image component to a Lightning page in App Builder and configure it via the Properties Panel.
Basic Properties
These control the image source, size, and presentation.
Crop Size and Fit Guidelines
Note: Use contain for critical content (e.g., logos); cover for immersive visuals.
Example 1: Profile Image on Contact Page
Scenario: Display a professional square thumbnail profile photo on Contact record pages using images stored in Salesforce Files.
Prerequisites:
Create a custom field to store the image ContentDocumentId on the Contact object
Profile_Photo_ID__c
Steps
Result: Users see a professional square thumbnail profile image in a styled card container on the Contact page, perfect for quick visual identification
Example 2: Image on a Product page
Scenario: Display a professional photo of your products using an image stored in Salesforce files in order to drive your teams' product knowledge and showcase your products.
Prerequisites
Create a text field on the Product2 object (
ThumbnailId__c) to store the ContentDocumentId of the imagePopulate the field on your products
Example 3: Add your company banner to your Home page
Scenario: Display your company logo in a banner on your Home page to drive user engagement and adoption.
Prerequisites
Create a static resource containing the image file named to store your company logo image file
/resource/CompanyLogo
Key Considerations
Image Source: Use ContentDocumentId for secure files; ensure URLs are accessible.
Size and Crop: Adjust Width, Height, and Crop Size for layout consistency.
Performance: Optimize image size to avoid slow loading.
Accessibility: Add alt text via descriptions; test with screen readers.
Limitations: No editing; respects sharing/FLS rules.
Troubleshooting Common Issues
Image Not Displaying: Check Image Url or Content Document Id and file permissions.
Crop Issues: Verify Crop Size and Crop Fit settings match the image aspect ratio.
Card Not Showing: Ensure Display as Card is true.
If Issues Persist: Contact our support team at [email protected] for assistance.
Summary
The Avonni Image component enhances Lightning pages with customizable, professional images. It’s ideal for profiles or product visuals.
Last updated
Was this helpful?
