4.3.Generating JPEG 2000 using Open JPEG

Cooperating with the intranda TaskManager allows Goobi to outsource the time-consuming job of generating JPEG 2000 to external devices.

Starting the plugin

The following call instruction is required in order to generate JPEG 2000 from a workflow step through TaskManager using Open JPEG:

/usr/bin/java -jar /opt/digiverso/itm/bin/TaskClient.jar 
    -itm http://localhost:8080/itm/service 
    -d {processpath} 
    -s {origpath} 
    -e -i {stepid} 
    -T {processtitle} 
    -t JP2 
    -n template 
    -gid {processid}

Parameters

The command parameters are explained in the following table:

Parameter

Possible Goobi variable

Meaning

-itm

http://localhost/itm/service

URL zur Schnittstelle des intranda TaskManagers

-e, --returnError

-

If this parameter is met, the TaskClient will end with an error code to prevent the workflow from continuing automatically

-p

0 – 10

Priority to execute this job

-gid

{processid}

Goobi process ID

-i

{stepid}

The workflow step ID that launches the call

-T, --title

{processtitle}

The Goobi process title for which the call is launched

-t, --jobtype

JP2

The job type

-n, --templatename

template

Name of the previously generated configuration file

-s, --source

{origpath}

Path to the process master directory

-d, --destination

{processpath}

Path to the process main directory

Operation of the plugin

Once the JPEG 2000 files have been generated, TaskManager will automatically move them into the associated Goobi process folder. As well as recording the successful completion of the jobs in the process log, TaskManager will close the automatic workflow step via WebAPI.

Last updated