Comments (4)
Hi @joeydaowang!
If I understand correctly, the bug report is that we now read a (non-spec) JPEG that we didn't before? I don't see the problem in that. If you add a warning listener while reading, you will get a lot of warnings though.
The problem seems to be that the APP1/XMP segment (before the first APP2/ICC_PROFILE) has a size much larger (19392) than the actual segment, so that the first ICC Profile segment is missed (and thus the entire ICC Profile is unreadable). If I manually fix the segment to its correct size (12662), the file seems entirely fine.
I believe the new behavior is fine (and desirable). Why do you think it's a bug?
from twelvemonkeys.
Hi @haraldk,
Thanks for replying so quickly.
I am not sure whether it is a bug. I would argue that if the image can't be opened by image viewer, then reader should throw exception as it is fatal error instead of warning?
from twelvemonkeys.
There are so many semi or non-compliant JPEGs that can be read by various software. It's a goal for this plugin to be lenient about such issues. If you only want to read spec-compliant JPEGs, you can use the built-in JPEG plugin, I'm sure it will throw exception for this image..
If we can actually read the image, why would you consider that a "fatal error"? I'm happy with the current behavior, so I'm closing this issue for now.
from twelvemonkeys.
Fair enough. I will use build-in JPEG reader for additional validation.
Thanks.
from twelvemonkeys.
Related Issues (20)
- 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
- PSD: When make PNG from PSD using TwelveMonkeys, it's different from Photoshop. HOT 4
- Change Maven GPG plugin to use Bouncy Castle signer
- Unsupported BitsPerSample for SampleFormat 3/Floating Point (expected 16/32): 64 HOT 4
- PSD: BufferOverflowException if encoder adds garbage to the end of rows
- Dynamic images in WebP format, and even ordinary GIF images, cannot read delays after using this plugin. HOT 2
- Warning system custom messages HOT 3
- Unable to read dynamic webp using javax.imageio.ImageIO#read(java.io.InputStream) on aws lambda HOT 1
- TIFF: ArrayIndexOutOfBoundsException in HorizontalDeDifferencingFloatingPointStream.decodeDeltaBytes HOT 3
- JPEG 2000 format support HOT 1
- TIFF: Decoding chunky gray + extra samples is broken HOT 1
- heic-image HOT 1
- WebP: "Coordinate out of bounds!" exception thrown when reading certain files HOT 2
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.