I've been trying to write an image resize tool to use the Lancoz resample algorithm to resize images to a high standard in Java. The library with the algorithm/filter in it is mortennobel's image scaling library and it takes a buffered image as an input and returns the resized image as desired. However the trouble I’m having is that the ImageIO library in Java, a standard library, which converts images given to its read method to buffered images doesn't accept certain images created in Photoshop and so it throws an exception. My library needs to be fully automated to process possible thousands of images at a time and so manually converting them by resaving them as JPEG's is really feasibly. Is there some way I can convert these images from Adobes Exif format to standard JFIF format? I've tried simple inserting the APP0 marker from a JFIF image in-between the SOI and APP1 marker but the ImageIO library still failed.
The above image is a screenshot of the binary in hex of one of the images that cause an Invalid Format exception when passed to ImageIO.
Any help you could offer me with this would be much appreciated.
Kind regards and thank you,
Wrong product forum. You could try the photoshop forum.
Thanks for the advise, I'll post it there, thought I'd post it here because I thought it to be more of a technical problem, don't suppose you know any Java Guru's at Adobe that might be able to help?