xperseguers / t3ext-extractor

TYPO3 Extension extractor
https://extensions.typo3.org/extension/extractor
GNU General Public License v2.0
15 stars 24 forks source link

fix: Coerce `iso_speed` to integer, matching EXIF specification #53

Closed LeoniePhiline closed 1 year ago

LeoniePhiline commented 2 years ago

Fixes https://github.com/xperseguers/t3ext-extractor/issues/48 and https://github.com/xperseguers/t3ext-extractor/issues/39

The EXIF field ISOSpeedRatings is defined as SHORT integer. Some camera models use invalid string values like "100 0" or "125, 0".

TYPO3 and EXT:extractor should handle such invalid values with grace and normalize the input. Before this patch, however, TYPO3 panics with MariaDB script mode error Data truncated for column 'iso_speed' at row 1.