Imagemagick may also be of use...http://www.imagemagick.org/Usage/formats/#jpg_losslessThere are fpc bindings, but I've never used them. Usually just ship the binary with my app and fire off commands with TProcess.