Skip to main content
Question

Kakadu compatible JP2000

  • June 12, 2023
  • 4 replies
  • 38 views

jdh
Contributor
Forum|alt.badge.img+40

Has anyone encountered issues with 4-band jp2000 files written by FME Server crashing in Kakadu?

 

The error is:

"A `jp2_channels' object indicates the presence of "

      "more colour channels than the number which is associated with the "

      "specified colour space. This may happen while reading a JP2-family "

      "data source which contains an illegal channel definitions (cdef) "

      "box, or it may happen while writing a JP2-family file if the "

      "`jp2_channels' object has been incorrectly initialized."

 

4 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+47

Not familiar with Kakadu, however, I have had some issues with rasters from FME sometimes. How was the image created - Just with the writer or is it a texture? Have you tried loading the image in other applications?


jdh
Contributor
Forum|alt.badge.img+40
  • Author
  • Contributor
  • June 13, 2023

Not familiar with Kakadu, however, I have had some issues with rasters from FME sometimes. How was the image created - Just with the writer or is it a texture? Have you tried loading the image in other applications?

It's just the writer, 0 compression, profile 0. Images load in ArcMap, QGIS, and Erdas Imagine. They don't load in current versions of Photoshop.

 


kate-safe
Safer
Forum|alt.badge.img+10
  • Safer
  • June 13, 2023

Hi @jdh​ and thank you for your post!

Are you getting the same errors when writing directly from FME Workbench? From FME Flow (formerly Server), how are you using the workspace (e.g. in automation, an app, etc.)? If possible are you able to share the workspace you have (or a sample of it) and a sample input file so that I can do some tests on my end? If you can also confirm what version/build of FME (workbench and server) that would be great!

Thank you! Kate


virtualcitymatt
Celebrity
Forum|alt.badge.img+47

It's just the writer, 0 compression, profile 0. Images load in ArcMap, QGIS, and Erdas Imagine. They don't load in current versions of Photoshop.

 

Weird - Perhaps there is something in the files which isn't supported. You can try and use this tool to see if anything jumps out: https://jpylyzer.openpreservation.org/

I'd compare an image that works in Photoshop vs one that doesn't.

 

We had an issue with Tiff images which were created by Photoshop. The images were structured in an inefficient way (at least according to their metadata). Gdal was failing to properly read it.