This documentation is for the old version. Go to the latest Upload Suite docs

ImageUploader.AllowAutoRotate Property

Supported in: ActiveX , Java

Switch that enables automatic EXIF-based photo rotation feature.

Syntax

Initialize

JavaScript
<script type="text/javascript" src="iuembed.js">  </script>
<script type="text/javascript">
var iu = new ImageUploaderWriter("ImageUploaderID", 610, 500);
//...other params...
iu.addParam("AllowAutoRotate", "false");
//...other params...
iu.writeHtml();
</script>

Get/Set Value in Runtime

JavaScript
getImageUploader("ImageUploaderID").setAllowAutoRotate(value);
value = getImageUploader("ImageUploaderID").getAllowAutoRotate();

Property Value

A boolean value (true or false). If true, Image Uploader tries to extract EXIF information from files and if it finds information about image orientation, automatically rotate it. If false, EXIF data is disregarded and only manual rotation is available.

Default value is "false".

Remarks

This feature works only for those photos which store EXIF information and orientation details are written there. Keep in mind that not each camera can recognize orientation properly, and therefore Image Uploader will not be able to rotate it.

See Also

Manual

Reference