i increased the heap size and was able to create a jpg file out of a tif file. As assumed, the jpg file is not as clear as a tif file. I want to make sure is it really possible to create a jpeg out of tif without losing data quality by manipulating the encoder parameters. i dont want to try if there is no way u can do it.
please let me know.
Joined: Feb 13, 2004
Any help on this. What i am trying to do is realistic or not Rashid
JPEG is an inherently lossy format. Converting a TIFF to a JPEG is going to lose quality. That may become unnoticeable if you set JPEG quality to 100% (trading away compression, i.e. file size, in the process), but then, it may not. Since TIFFs are mostly used where the exact value of pixels matter, and JPEG will not preserve those, you're probably better off not converting. (I'm not sure you actually can set JPEG quality with ImageIO; I generally use ImageJ for image processing, and it can do that).