Comments (3)
The issue is that the value of the EnumCS of the colr box is 17=GreyScale. It should rather be 16=sRGB
<JP2Box name="colr" box_offset="66" box_length="15" data_offset="74" data_length="7">
<BinaryContent>01000000000011</BinaryContent>
<DecodedContent>
<Field name="METH" type="uint8" description="Enumerated Colourspace">1</Field>
<Field name="PREC" type="uint8">0</Field>
<Field name="APPROX" type="uint8">0</Field>
<Field name="EnumCS" type="uint32" description="greyscale">17</Field>
</DecodedContent>
</JP2Box>
from openjpeg.
by the way recent versions of Kakadu also complain about that file: "Looks like the file contains an illegal channel definitions (cdef) box; trying to fix the problem so that content can still be rendered."
from openjpeg.
Agreed. It likely needs to be coded as RGB not grayscale. Also the 4th channel is coded as alpha and I think it might be an IR channel. The files are likely miscoded or they were created under an earlier definition of the format, though I suspect the former is the issue.
from openjpeg.
Related Issues (20)
- OOM in opj_decompress HOT 1
- Could NOT find OpenJPEG HOT 1
- obj_compress issue with low quality and same colour image HOT 2
- Exist a undefined-behavior issue in file src/lib/openjp2/tcd.c:2327
- opj_compress -I / -mct 0 should conflict each others HOT 1
- Support for high throughput (HTJ2K) encoder HOT 3
- Hi Gunter,
- Potential double-free vulnerability in j2k.c HOT 1
- Trying to build for devKitPro Nintendo Switch gives an error on the compilation/build process
- SIGILL openjpeg-2.5.0/src/lib/openjp2/ht_dec.c:330 in mel_init HOT 1
- SIGILL openjpeg-2.5.0/src/lib/openjp2/dwt.c:385 in opj_idwt53_h_cas0() HOT 1
- openjpeg.org is down HOT 2
- Exist a undefined-behavior issue in file src/lib/openjp2/dwt.c:2124
- Browser plugin for Firefox? HOT 1
- Website broken HOT 6
- API breakage in 2.5.1 / openjpeg version no longer detected (openjpeg.h no longer includes opj_config.h) HOT 7
- Release v2.5.2 tag is outside of the repository HOT 2
- Encoding failure for 1-bit images with opj_compress
- opj_decode_tile_data takes a long time to decode a very small file
- unable to load .tif images
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 openjpeg.