+ Start a Discussion
Suneel14Suneel14 

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 

 

'https://c.cs6.content.force.com/servlet/servlet.FileDownload?file=' + 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