We have a web service that returns jpegs in 12-bit format, not 8-bit. When referencing the images via a url in the html we get sun.awt.image.ImageFormatException: Unsupported JPEG data precision 12. I understand that java does natively support the 12-bit format, but before we go off and work out our own solution I was wondering if PD4ML offers any help here or if there is a recommended way to handle this?
Steve, there is a big probability the image format is supported by JAI library. If so, you may implement a custom resource loader, which reads the JPEG (using JAI library), and converts it on a fly to any PD4ML-friendly image format.
I’ve attached a sample of TIFF loader to start the implementation from.
Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘General questions / FAQ’ is closed to new topics and replies.