my question is what to do to detect image orientation when exif data don't exist or don't have rotation value.
Example : photo from mobile phone
<?php echo exec('exiftool -Orientation file 2>&1');
// MOBILE -> returns -> Orientation : Rotate 90 CW
// DSLR -> returns -> empty ?>
When I try this
echo exif_read_data($multimedia_newPATH)['Orientation']
// Mobile Phone -> 6
// DSLR -> value 1 (horizontal and/or vertical) gives same 1
EDIT Many DSLR write orientation 1 (normal) for both when camera is horizon or vertical, so a normal php script would "think" there is no rotation to perform.
so is there a orientation algorithm or orientation recognition script ???? (face recognition exists, but is there orientation recognition ?)
*** note ; exiftool is in perl modules (Image::ExifTool) in WHM...