jpeg image quality

T

tiewknvc9

Im stuck, and out of ideas....

Is there any way to specify NO COMPRESSION on a jpeg image?

I have a renderedImage object that contains no more than 2 colors call
them color A and color B. I would like to be able to access all the
pixels of color B and change them. However with the compression, some
of the colors in the jpeg do change to other colors (perhaps colors
C-Z).

I need to work with a Jpeg because I am using JMF to create a movie
file.

I thought that perhaps it was due to the quality of my jpeg... So I
tried this to increase the quality to the highest setting-
http://javaalmanac.com/egs/javax.imageio/JpegWrite.html

Still I have discolorations around color A, obviously from the jpeg
trying to blend the 2 colors. I want to stop the blending and stop the
compression! Just want a plain old school 2 color image.


sorry for the rant, please let me know if you have any ideas...
 
O

Oliver Wong

tiewknvc9 said:
Im stuck, and out of ideas....

Is there any way to specify NO COMPRESSION on a jpeg image?

I have a renderedImage object that contains no more than 2 colors call
them color A and color B. I would like to be able to access all the
pixels of color B and change them. However with the compression, some
of the colors in the jpeg do change to other colors (perhaps colors
C-Z).

I need to work with a Jpeg because I am using JMF to create a movie
file.

I thought that perhaps it was due to the quality of my jpeg... So I
tried this to increase the quality to the highest setting-
http://javaalmanac.com/egs/javax.imageio/JpegWrite.html

Still I have discolorations around color A, obviously from the jpeg
trying to blend the 2 colors. I want to stop the blending and stop the
compression! Just want a plain old school 2 color image.


sorry for the rant, please let me know if you have any ideas...

JPEG is the wrong tool for the job. See
http://www.faqs.org/faqs/jpeg-faq/part1/section-13.html

If you want to stick with a lossy file format, you'll have to build
tolerances into your colour matching algorith, That is, if you *KNOW* an
image is only composed of two colours, then when you see a colour that isn't
one of the two, you have do some "rounding" to find out which of the two
known colours this new colour is "nearest" to.

- Oliver
 
T

tiewknvc9

hmmm that sux :(

Well... Is it possible to make a .mov file with PNG files in JAI? or
would another file format work within the JMF? Or is PNG files also
lossy and crapridden? Im looking for a way to convert a set of image
files into a .mov file...

Thanks for your response!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top