PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: 12-bit JPEG
   PostPosted: 10 Aug 2011, 06:27 
Hi,

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?

thanks
Steve


  Subject: Re: 12-bit JPEG
   PostPosted: 10 Aug 2011, 09:23 
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.


Attachments:
TiffImageLoader.java [2.34 KiB]
Downloaded 44 times

[Reply]     [ 2 posts ] 

Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share