feexon / thumbnailator

Automatically exported from code.google.com/p/thumbnailator
Other
0 stars 0 forks source link

Using JAI library? #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Is there a way to use the JAI library for scaling images?  It looks like we're 
getting CMMException: Invalid Image Format when trying to read certain images, 
and people recommend using the JAI library.

Original issue reported on code.google.com by eli...@espoc.com on 26 Sep 2013 at 3:55

GoogleCodeExporter commented 9 years ago
Thank you for taking time to file this feedback.

Sorry for taking long to get back to you.

I'd rather not add JAI as a dependency to Thumbnailator for the following 
reasons:

  1. Thumbnailator is currently a standalone library with no dependencies.
  2. As Thumbnailator is without dependencies it maintains a fairly small footprint.
  3. Adding JAI as a dependency will complicate deployment of Thumbnailator for non-Maven users.
  4. JAI itself appears to be poorly maintained with no releases in the past 7 years.[1]
  5. Licensing for JAI is incompatible with open source.[2]

Therefore, I will not consider using JAI within Thumbnailator.

That said, if you would like to use Thumbnailator along with JAI for reading 
and writing images, I believe it would be possible by using the `jai-imageio`, 
although it would be beyond the scope of the Thumbnailator project to provide 
support for a 3rd party library.

[1]: http://en.wikipedia.org/wiki/Java_Advanced_Imaging
[2]: http://en.wikipedia.org/wiki/Java_Research_License

Original comment by coobird...@gmail.com on 21 Dec 2013 at 10:43