Skip to content
This repository was archived by the owner on Jan 14, 2026. It is now read-only.
This repository was archived by the owner on Jan 14, 2026. It is now read-only.

Tesseract in Hypercube does not support JP2 files  #298

@alxp

Description

@alxp

This was a side-issue that I found while investigating Islandora/islandora#903

Steps to reproduce:

On fresh install of ISLE-DC development branch as of 2022-10-17:

  1. Create an object with model Page
  2. Add a Media of type File and upload a TIFF file, checking 'Original File' in Media Use.
  3. Add an object with model Page
  4. Add a Media of type File and upload a JP2 file, checking 'Original File' in Media Use.

Expected behaviour:

Both objects should have an Extracted Text media containing the text embedded in the respective images.

Actual result:

The media with a TIFF file has thumbnail, service file, FITS file and Extracted Text
The media with the JP2 has thumbnail, service file and FITS file but no Extracted Text.

This error shows up in the Hypercube logs:

[2022-10-18 15:00:35] crayfish.cmd_execute_service.ERROR: Process exited with non-zero code. {"exit_code":1,"stderr":"Error in pixReadMemJp2k: function not present\nError in pixReadMem: jp2k: no pix returned\nError during processing.\n"} []

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions