KBNLresearch / pdfbatchqa

Apache License 2.0
0 stars 0 forks source link

Exiftool JPEG Quality estimate returns "unknown" for most images #5

Open bitsgalore opened 2 days ago

bitsgalore commented 2 days ago

Exiftool can report a JPEGv quality estimate, see here. This works with custom-generated images I create in ImageMagick. For example:

convert -quality 60 wizard: wizard-60.jpg

Throw this at ExifTool:

exiftool -X -JPEGQualityEstimate wizard-60.jpg

Result:

 <File:JPEGQualityEstimate>60</File:JPEGQualityEstimate>

This also works at lower quality levels (e.g. 40). But for every JPEG that I extract from our test PDFs I get this instead:

<File:JPEGQualityEstimate>&lt;unknown&gt;</File:JPEGQualityEstimate>

This matches exactly with the situations where ImageMagick's quality estimates fail. as documented here:

https://github.com/ImageMagick/ImageMagick6/issues/260