Switch that enables automatic EXIF-based photo rotation feature.
<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>
getImageUploader("ImageUploaderID").setAllowAutoRotate(value); value = getImageUploader("ImageUploaderID").getAllowAutoRotate();
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".
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.