function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Passing Image size in URL

Hi , 


i created a Custom Object "Photo" i am saving photo in attctment of this obj. by using formula filed filed i am populating url of image but i want to pass Hieght and widh for image in this url ... i think this is not passible in formula field 


'' + Photo_ID__c . Photo_ID__c  is field which is calculating ID of PHOTO obj by Trigger.


is there any way to calculate url with hieght and width ..



thank you !!

Best Answer chosen by Admin (Salesforce Developers) 
Anup JadhavAnup Jadhav

I think the simplest solution is to upload the image with the desired height and width. You don't have to worry about sending the height and width in the url (which i am not even sure is possible).


If you want images of different height and width, then you can upload the same image with different dimensions as attachment, and use the correct image on the fly.


Hope this makes sense!


- Anup