Comments (8)
Thanks for reporting! I'll have a look at it.
Can you please update the issue with Java version, platform and vendor?
Thanks,
Harald K
from twelvemonkeys.
I'm on Mac OS X 10.9.1
$ java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
from twelvemonkeys.
Thanks.
I could reproduce the issue. Seems like there's something weird with the ICC profiles (as expected from the stack trace) in these images. The images both contain a "Corbis RGB" ICC profile, which seems to be either broken, outdated or just not a very well supported version of the ICC spec.
They can both easily be read if I ignore the ICC profile.
I just need to find a way to single out these profiles, and either fix the ICC profile at runtime (like we do for a few other ICC profile issues), or just ignore the ICC profile altogether as a worst case.
Without the ICC profile the colors looks a little off, compared to Preview, so I think they should be fixed.
Harald K
from twelvemonkeys.
I just committed a fix for this issue, please give it a try.
Harald K
from twelvemonkeys.
That fixed it, thanks!
from twelvemonkeys.
Good. :-)
from twelvemonkeys.
The current release 3.3.2 doesn't seem to contain this patch and crashes with the same exception.
Is there a twelvemonkey release which applied this patch?
from twelvemonkeys.
@lauerc The current release may be old, but not that old.... The patch is in the 3.3.2 release. But as the exception isn't really a TwelveMonkeys bug, but rather a ICC profile or ColorManagment issue, we might have to work around it in more places.
Please create a new issue, include the library version, JRE version, the relevant stack trace, and attach an image that can reproduce the problem. If the problem can't be reproduced through a trivial ImageIO.read(...)
, you also want to include the source code needed to reproduce.
PS: If you have the time, please get the latest master from GitHub, build locally, and test with that version. There will be a 3.4 release really soon
Best regards,
--
Harald K
from twelvemonkeys.
Related Issues (20)
- Question: compatibility with org.apache.commons:commons-imaging ? HOT 2
- Features stopped working after upgrading to JDK 17 HOT 8
- It would be nice if Twelvemonkeys had support for EXIF tag 0xa436 Title HOT 10
- Problematic inconsistence in JPEG color space detection: TwelveMonkey vs standard Java API HOT 9
- Wrong colors with CMYK JPEG HOT 1
- Webp: cannot decode grayscale images HOT 5
- NPE while read a PSD file HOT 3
- Unable to modify a JPEGImage10Metadata comment value HOT 17
- JPEG: Preserve metadata when writing CMYK HOT 5
- The OSGi support only exports the ImageReaderSpi services and not the ImageWriterSpi services HOT 1
- BMP: Write support for more ARGB types HOT 1
- Some malformed PSD images never return from `ImageIO.read()` using 3.10.0 HOT 2
- WebP: Images decoded with yellow tint HOT 1
- Possible bug in Half.shortBitsToFloat HOT 5
- Troubleshooting with ImageIO plugin registry issue (NoClassDefFoundErrors) without web.xml file HOT 1
- YCCK JPEG from a PDF with wrong colors HOT 5
- TIFF: Support SAMPLEFORMAT_COMPLEXINT (5) HOT 3
- WebP plugin stops working when other plugins are enabled too HOT 2
- PSD: Get layer kind (type) to metadata HOT 1
- Twelvemonkeys Servlet should support Jakarta HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twelvemonkeys.