This fixes an issue where scanimage is asked to scan a JPEG from a 16-bit source.
scanimage
This fixes one of the issues described in #809.
Before:
After: