Hi Thanks Andrey for the sample code for the JPEG destination manager. I tried it,it is simple and it is working fine. :) Also thanks for Gerd and Luc for the tips regarding this issue. I also have a question if anybody can help. It seems that compressing with the Independent JPEG group's library version:release 6b of 26-Mar-1998 it makes a JPEG that the Intel JPEG Library(IJL) version 1.5 can not decode.(this library works under windows) Anybody knows what could be the reason? Or how can I set some parameters in the JPEG library undeer linux to work with the IJL? The IJL API's IJLRead function returns with code IJL_INVALID_JPEG_PROPERTIES=-8 Maybe I must set some other properties? Laci