title: Using libtiff's TIFFReadRawTile to get a jpeg tile without decompression/compression
body: <p>i've a pyramidal tiled tiff file and I want to extract the tiles without decoding and re-encoding the jpeg, i've seen that using TIFFReadRawTile() function you can extract the raw tile without decoding, how can i write the extracted buffer to a readable jpeg file?</p>