I am using the Jsteg method, but i have a confusion, something i don't quite understand.The steps are:
- Get 8x8 pixel block
- Discret cosine tranform
- Quantization
- Replace the Least Significant Bit
What i don't understand is, when i open the image in java using BufferedImage and ImageIO and do these steps, how do i save the changes? if i write:
ImageIO.write(img,"jpg",new_img);
does java recompress the image and then the hidden text is lost, or when it does the compression it doesn't change anything since i did compress manually? or should i save it in another way? Bottom line:After replacing LSB, how to save the encoded image ?