JPEG warning: 'Premature end of JPEG file'

Created by: siebenkopf

When reading incomplete JPEG images, I find the follwoing warning message on the console:

Premature end of JPEG file

Unfortunately, it seems that this error message is generated by libjpeg and cannot easily be disabled: https://github.com/EyalAr/lwip/blob/master/src/lib/jpeg/jerror.h#L184

It would be nice if we could investigate, if it is possible to turn this message into a proper warning message using the bob::core::logging module (where the warning message can be disabled). Does anyone have experience with setting up libjpeg warnings?