Hello Dylan,
1 Lay HTML component and on your grid and set its type "div"
2 Set dimension for it auto and 250 px
3 Remove your Image component from page into the html component
4 Set dimension for image 100% and 100%
5Your javascript code for mapping image:
code if (value) {
var bin = atob(value);
var exif = EXIF.readFromBinaryFile(new BinaryFile(bin));
if (exif.Orientation === 6) {
$(element).css("-webkit-transform", "rotate(90deg)");
$(element).css("-moz-transform", "rotate(90deg)");
$(element).css("-ms-transform", "rotate(90deg)");
$(element).css("-o-transform", "rotate(90deg)");
$(element).css("transform", "rotate(90deg)");
$(element).css("max-height", "200px");
}else{
$(element).css("max-width", "200px");
}
return "data:image;base64," + value;
} else {
$(element).hide();
$(element).parent().hide();
return value;
} /code