_get_jpeg_header_data in line 201 may return a boolean in some images or illegal files, so count($jpeg_header_data) in line 204 will cause an error since PHP 7.2.
PHP has been doing this since version 7.2: parameter must be an array or an object that implements Countable interface.
https://github.com/JamesHeinrich/getID3/blob/6e2e30fdbeec2b3136c3d80d0a81b7e0ae1504d5/getid3/module.tag.xmp.php#L201-L204
_get_jpeg_header_data
in line 201 may return a boolean in some images or illegal files, socount($jpeg_header_data)
in line 204 will cause an error since PHP 7.2.PHP has been doing this since version 7.2: parameter must be an array or an object that implements Countable interface.