Open theonlybenjamin opened 2 years ago
This lib reads the EXIF rotation information and rotates it accordingly. It is normal that the output file does not have EXIF information.
Yes, want i want to do is upload the rotated file, and dont need the exif information on the file, i just need the rotated file but it(the lib) doesnt rotate the file. The exif rotation number is 6 but my image arrives like this to the server(original image, withouth rotation)
maybe im doing something wrong, please I would really appreciate your help
@theonlybenjamin It seems that your image file is png, you may provide the exifOrientation
value in the option. For example:
options = {
maxSizeMB: 1,
useWebWorker: true,
exifOrientation: 6
}
We only detect EXIF rotation information for jpg images at the moment.
its jpg image, give you some pictures: this is the file: uploading the file: and this is the code: Even if i harcoded the exifOrientation property with 6, it doesnt rotate it
Can you zip the jpg file and upload it here?
its jpg image, give you some pictures: this is the file: uploading the file: and this is the code: Even if i harcoded the exifOrientation property with 6, it doesnt rotate it
of course, there you go test.zip
test_result.zip @theonlybenjamin I cannot reproduce your issue, the lib detects it's exifOrientation value is 6 and rotated it accordingly. You may try it out in https://donaldcwl.github.io/browser-image-compression/example/basic.html I have upload my test_result.zip here for your reference.
hello, I want to upload the new file with EXIF rotation to my server, it does not show me any error in the console, but my file is uploaded without EXIF rotation. here's my code