Open ilyai opened 1 year ago
Hello there! Thank you for reporting.
Just checked the image and noticed that image contains "empty" non-EXIF APP1
marker which expressed to 2 bytes segment length. Currently parser assumes APP1
segment length to be greater or equal than 8 bytes for non-EXIF APP1
segment to skip unnecessary bytes, but that 2 bytes segment length made parser to skip negative bytes (-6 bytes). So this resulted to that error.
I thought that I've tested get-orientation
with many "corrupted" JPEG images, but wow. your case is not covered by that test images.
I can fix this issue and I will include this image to "corrupted" image set for testing. but hey, Can I use this image for testing? I have concerns about image licensing.
Unfortunately, I cannot guarantee an ETA at this moment but expected to be resolved in next 2 weeks - I've been super busy recent days and I don't have enough spare time to fix this issue 😭
Anyway thanks again for reporting this and this was super helpful for me. Stay tuned!
It works fine for most of the images, but I've found an image which
get-orientation
fails to process. The error message is the following:Here is the image which makes
get-orientation
to fail:I'm using the latest version of the package: 1.1.2