Open o1da opened 8 years ago
kdu_compress
returns -1 as error code (255), so maybe just improve checking in python.
Kakadu 7.7. is failing too.
I tried converting this JPEG into TIFF with gdal_translate
, but it ends with same error.
kdu_compress
without any arguments doesn't succeed.
I do not know, what to do with this error. I don't found anything special on kakadu forum, but maybe you can try write them, what to do with this error message.
If we detect this error we have to strip from the TIFF headers the ICC color profile or ignore it - this should be possible to do.
This is enhancement of the existing ingest process.
Check image with URL https://www.rijksmuseum.nl/assetimage2.jsp?id=BK-1980-773-B It is JPG file, it can be converted to TIF, but conversion to JPEG2000 is failing, but without error status code from
kdu_compress
, so ingestion process continues to S3 upload. S3 upload fails with error code (and this is the one which is saved), because file with 0B size can't be uploaded.This info is printed:
Probably add another check for not 0B size of converted image - test of output code from
kdu_compress
isn't enough.Look at
kdu_compress
too, it seems that source image isn't corrupted. Maybe different configuration? https://github.com/klokantech/hawk/blob/master/embed/app/ingest.py#L121 @MartinMikita