+ Start a Discussion
Sagar PareekSagar Pareek 

Need to shrink image before upload.


I have a requirement where i need to srhink image before uploading it as an attachment through a vf page.

How i can do this?




As of now no image compression mechanism is provided by salesforce. As long as images are within the supported standard size and format, we can upload images.


I'd suggest you to either post an idea or vote a similar idea available on ideaexchange portal at below link:



If you're not concerned about alienating IE folk (IE9 and less), you could use HTML5's native capabilities to shrink your image. See http://stackoverflow.com/questions/2303690/resizing-an-image-in-an-html5-canvas as an example.
Ajinkya DhasAjinkya Dhas
If you want this functionality in salesforce Please UpVoted So that salesforce will implement it 
Thank You,