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
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