rkalla / imgscalr

Simple Java image-scaling library implementing Chris Campbell's incremental scaling algorithm as well as Java2D's "best-practices" image-scaling techniques.
Apache License 2.0
1.23k stars 243 forks source link

The attached image cause an error when parsing. #96

Closed murdog05 closed 10 years ago

murdog05 commented 11 years ago

The image below cause an exception when parsed by Version 4.2

selectedmbi_color_cmyk

ghost commented 11 years ago

What is the error/exception?

imgscalr doesn't do any parsing/loading of images, it only processed BufferedImages that have already been decoded by Java -- but before I close this, I wanted to understand the issue in more detail first.

It is also handy to have a collection of problomatic images to test with ;)

murdog05 commented 11 years ago

Here is the stack trace

javax.imageio.IIOException: Unsupported Image Type at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:1063) at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:1034) at javax.imageio.ImageIO.read(ImageIO.java:1448) at javax.imageio.ImageIO.read(ImageIO.java:1352)

But on a positive note, I would like to thank you for such a great product!

murdog05 commented 10 years ago

Any updates on this?

ghost commented 10 years ago

Sorry I missed your update. This isn't imgscalr, this is core Java erroring out.