dasch-swiss / sipi

Simple Image Presentation Interface
https://sipi.io
GNU Affero General Public License v3.0
32 stars 8 forks source link

Sipi crashes when converting file6.jp2 to TIFF #153

Closed benjamingeer closed 7 years ago

benjamingeer commented 7 years ago

file6.jp2.zip

One 12-bit component in the sRGB-grey colourspace. If a reader fails on this file, the likely cause is an error in the extraction of 8 bits from the 12-bit codestream.

lrosenth commented 7 years ago

I'm working on it. The reason is clear - I did not support some of the rather exotic color profiles that J2K supports. Obviously they make part of the ISO test suite. No big üroblem, just some work :-) see branch colorprofiles where I'm working on it...

Von meinem iPad gesendet

Am 24.03.2017 um 12:48 schrieb Benjamin Geer notifications@github.com<mailto:notifications@github.com>:

file6.jp2.ziphttps://github.com/dhlab-basel/Sipi/files/867722/file6.jp2.zip

One 12-bit component in the sRGB-grey colourspace. If a reader fails on this file, the likely cause is an error in the extraction of 8 bits from the 12-bit codestream.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHubhttps://github.com/dhlab-basel/Sipi/issues/153, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFN9zCrs3zxfo3QaDGuJE2S1kwdX7BUyks5ro617gaJpZM4MoJQk.

benjamingeer commented 7 years ago

Still fails:

$ build/sipi -f /Users/benjamingeer/git/Sipi/test/_test_data/images/iso-15444-4/testfiles_jp2/file6.jp2 sipi_jp2_6.tif
Kakadu-library: Error in Kakadu File Format Support:
Did not find a valid `curv' data type in the embedded ICC profile's tone reproduction curve tag.
Sipi image error at [/Users/benjamingeer/git/Sipi/src/formats/SipiIOJ2k.cpp: 885]: Problem writing a JPEG2000 image!
lrosenth commented 7 years ago

Works now!