Note: When I send my code pictures produced on other devices, the pictures are rotated properly.
I believe the following line in the getExifOrientation(..) method of the ExifUtils.java class throws an error when dealing with images from the Samsung Galaxy S5.
Expected behavior
The following code should rotate the source file based on the Exif Orientation and save in the destination file.
Thumbnails.of(source).scale(1.0).toFile(destination);
Actual behavior
Destination file is not rotated.
Note: When I send my code pictures produced on other devices, the pictures are rotated properly.
I believe the following line in the getExifOrientation(..) method of the ExifUtils.java class throws an error when dealing with images from the Samsung Galaxy S5.
IIOMetadata metadata = reader.getImageMetadata(imageIndex);
Error: JFIF APP0 must be first marker after SOI
Steps to reproduce the behavior
Take a picture with Samsung Galaxy S5 and then run the above command on the file.
Environment