Closed bmheins closed 1 year ago
The problem with the division by 0 is supposed to be fixed since 38dde2d0. Could you please make sure you are testing with the development branch?
I can confirm that https://github.com/xperseguers/t3ext-extractor/commit/38dde2d0beef71c5dbf63f691ec35025e218767c fixes the problem. Thanks!
Hello @xperseguers
Thank you for fixing that issue in Dec. 2022. Do see a chance to release a new version?
Stefan
Done right now. Thanks for pinging :)
The image above leads to a "Division by zero" exception when uploading to TYPO3. It's thrown in the extractor extensions due to its EXIF metadata; in it the value "0/0" is set for "GPSAltitude" (and in some other places, see image below). (The image is a "real life" example; we stumbled upon this error in a production context. I just changed the image, not the metadata.)
Your extension tries to translate this relation into an absolute value and therefore throws the error.
In https://exiv2.org/tags.html for "Image.LensInfo" the value "0/0" is set for "unknown". Though this is is not the case for "GPSAltitude", but the value itself seems me to be legit and should IMHO be handled.
In the image above there are several occurances of the value "0/0":