Dear Marcel, I have discarded my changes on 2015-02-09, and have recovered the previous XeTeX_pic.c and jpegimage.c, since sizes calculated by XeTeX were correct. Maybe problems are in xdvipdfmx, or cmyk colors in jpeg are not supported. Thanks, Akira