Needs the jpeg library of the IJG.
Tested with version 6b-15ubuntu1 and 8c.