Link

JVM Flags

JDeli includes a number of flags which can be added to the java command line to alter the way it operates. These are listed in the tables below. The values are all lower case. For example, the command:

java -DDECODE_4_COMPONENTS_AS_ARGB=true --module-path . --add-modules com.idrsolutions.jdeli com.idrsolutions.image.CommandLine --convert $brokenJPEG.jpg $fixedJPG.jpg

It fixes the jpeg image which contains ARGB data. You can also set the values using System.setProperties() in Java, but you must do this before accessing JDeli.

Note: We recommend modules from Java 11 onwards, if you are using an older version you will have to use the classpath.

General JVM flags in JDeli

  1. decode_4_components_as_argb
  2. verbose
  3. overwrite
  4. image.tiff.compression
  5. image.tiff.dpi

decode_4_components_as_argb

This flag used in JDeli to process broken JPEG which contains ARGB data. You can add this flag programmatically using the JDeli read method with the custom parameters in a hashmap

Accepted Values

  • true
  • false

Default
false


verbose

Usually, JDeli doesn’t show any status messages but setting the verbose property to true will also print the status messages.

Accepted Values

  • true
  • false

Default
false


overwrite

Generally, JDeli generates an output file with a new name but setting the overwrite property to true will overwrite the input file.

Accepted Values

  • true
  • false

Default
false


image.tiff.compression

You can provide the compression you’d like to be applied to the image when written out as TIFF. See TiffCompressionFormat for more info.

Accepted Values

  • deflate
  • deflate_better_compression
  • deflate_better_speed
  • jpeg
  • lzw
  • none

Default
deflate_better_compression


image.tiff.dpi

You can provide the DPI to set for the image when written out as TIFF.

Accepted Values
Any positive number

Default
Not set



Start Your Free Trial


Customer Downloads