Image to JP2 for You!
Given a image, the JP2ImageConverter can convert image to JP2 using the Kakadu kduCompress command. It can also retrieve image metadata using EXIF fields and the ImageMagick identify command.
The JP2ImageConverter supports the following image formats: TIFF, JPEG, PNG, GIF, PICT, BMP, PSD, JP2, NEF, CRW, CR2, DNG, RAF.
Kakadu kduCompress struggles to convert non-TIFF images. To work around this, we preprocess images in other formats.
This involves converting non-TIFF images to temporary TIFF files.
GIF images have an additional -no_palette
argument in the kduCompress command to avoid pixelization.
The JP2ImageConverter should work on images with the following color spaces: RGB, Grayscale, and CMYK.
Kakadu kduCompress struggles to convert images with certain color space data.
We fixed our issues with grayscale and CMYK images, but we may not have accounted for all unusual color spaces.
Grayscale images have an additional -jp2_space sLUM
argument in the kduCompress command.
Images with a CMYK color space are first converted to a temporary TIFF file before JP2 conversion.
jp24u list -f <filename>
: retrieve image color fields and attributes for an image filejp24u list_all -f <filename>
: retrieve image color fields and attributes for a list of filesjp24u kdu_compress -f <filename> -o <outputPath>
: run kduCompress on an image file, set output pathjp24u -sf <sourceFormat>
: override source file type detection