first.. i'm sorry for bad grammer.. cause i have no dialog practise in english..
second..
do not work with jpeg files if you wanna get true colors. i'm on a new crypto algorithm that working with image files. i can't get true colors written by our code.
i am working with png files now.. and no problem..
perhaps we can save a jpeg file %100 quality and we can get true rgb colors that written by ourselves.. how can we do?
I noticed that quality 90 sizes are much smaller than using quality 100 and the quality is usually very good. Quality 80 was okay as well but the size was less than 10% of the quality 90 image.
If you want good crisp jpeg images use quality 90.
creamind wrote:perhaps we can save a jpeg file %100 quality and we can get true rgb colors that written by ourselves.. how can we do?
If I understand the issue correctly.. the answer is that you can't. The jpeg compression algorithm messes about with the colours so that you don't end up with exactly the same colour as you specified when creating the image, even with a quality of 100. The solution? Use imagepng() instead. You'll get much larger files, but the colours will be correct. I wrote a steganography script that had the same problem.