The buffered image types given below are not recognized properly by the native applications when written as jpg images using ImageIO - JPG Writer.
TYPE_INT_ARGB
TYPE_INT_ARGB_PRE
TYPE_4BYTE_ABGR
TYPE_4BYTE_ABGR_PRE
When i read back the jpg images through ImageIO- JPEGReader or using getImage() API they are read & shown properly. But when I try open these images using some of the native applications the native applications either throw an error or the image gets blurred.
Image Viewer on Solaris and Netscape and IE browsers on Windows throws an error when these images are opened and Images are totally blurred when viewed through Netscape on Solaris. This problem does not occur for other buffered image types and for PNG images. Typically, the jpg images written using ImageIO should be viewable through any native application that supports JPG images.
How to reproduce:
I have attached a sample code and a sample jpg image. Save them in the same folder. Run this sample code and you will see 4 images being created in the respective folder. Try opening these images using any native application and you would notice the error.
I tested using JDK1.4.2 - b18.