
Hello Experts,
Please suggest me to resize the thumbnail in ms crm , as it is taking part of the image other part of the image it is cutting.while uploading images it should be compressed in edit image please any body suggest it is project scenario.
function load()
{
var dyanmicsImageUrl = window.parent.Xrm.Page.context.getClientUrl() + "/image/download.aspx?attribute=entityimage&entity=" + window.parent.Xrm.Page.data.entity.getEntityName() + "&id="+window.parent.Xrm.Page.data.entity.getId() + "&Timestamp="+ new Date().getTime();
document.getElementById("form_pic_image").src = dyanmicsImageUrl;
}
Hi Amrutha,
manipulating directly the DOM to fulfil your requirement is not recommended as it is unsupported and can break after any update, so I would not recommend that approach.
Could you consider addressing that issue by providing picture ratio recommendations to the users uploading the images?