Then you have some kind of library conflict probably an incompatible version of libjpeg between the binary and your system
Run this command
Code:
LD_DEBUG=libs calibre-debug -c "from calibre.utils.magick.draw import identify as i; print i(I('lt.png')); print i(I('devices/nook.jpg'))" 2> log; grep png log; grep jpeg log