auto_rotate
doesn't work as expected. Processed image is wrongly rotated.
#1311
Labels
auto_rotate
doesn't work as expected. Processed image is wrongly rotated.
#1311
I am trying to process an image taken by specifically
S9+
. Image looks normal on Windows. I transfer that image to Linux (Debian
) and process viaruby
. Output is always 90-degree rotated. It should rotate correctly same as input.:autorotate
key didn't help.Sample Image: 20190519_225024.zip
Sample has vertically usb stick. Output is always horizontally.
Please also see our discussion here: janko/image_processing#52
However, I ran the same script on Windows with libvips 8.6.4, output is correct. I get correct rotation. Same as input.
I also did one last test. Ran the script in Linux then copy output file to windows and I see that they are rotated wrongly.
Linux server has libvips
8.7.4
. Also installed8.8.0-rc3
recently. Both has the same behavior.Also, @janko confirms that it works on Mac too.
What might be the problem?
I was woking on Golang previously, when i upload and process such images (like the attached one) i always get the correct result with
:autorotate
. But not this time on rubyScript:
Update:
I open that image with
mspaint
, draw a line randomly. Saved it. Then processed with above script and output is correct. This is really weird.The text was updated successfully, but these errors were encountered: