Visitor upload image not taking exif rotation data from image. Is there a way to do this via code? My code is working to upload the visitor file , but it appears it’s not reading the orientation info. Is there a way to do this in Wix code?
export function picupload_change(event) {
let sizelimit = 500000 ; //500kB
let file = $w( ‘#picupload’ ).value
let filesize = file[ 0 ].size
if (filesize<sizelimit) {
$w( “#picupload” ).startUpload()
.then( (uploadedFile) => {
$w( ‘#error1’ ).hide()
$w( “#pic” ).src = uploadedFile.url;
})
. catch ( (uploadError) => {
console.log( "File upload error: " + uploadError.errorCode);
console.log(uploadError.errorDescription);
});
} else {
$w( ‘#error1’ ).show()
}
}