> I have a small problem that i am unable to solve. I have quantized a
> jpg image and reduced the number of colors. It is currently as a
[quoted text clipped - 5 lines]
> could retain the original values and also why the original values are
> not being retained.
jpg is lossy format.
> I dont want to have the image in any other format
> like gif or png. Is it possible to do this using jpg itself
you should work direct in frequency domain.
Just now I extending my image reading library with this feature.
Come in one week to my homepage: http://reader.imagero.com
Regards

Signature
Andrey Kuznetsov
http://uio.dev.java.net Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities