Skip to content

UNC-Libraries/jp24u

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JP2 Image Converter

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.

Dependencies

Image Conversion

Image Formats

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.

Color Spaces

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.

Commands

  • jp24u list -f <filename>: retrieve image color fields and attributes for an image file
  • jp24u list_all -f <filename>: retrieve image color fields and attributes for a list of files
  • jp24u kdu_compress -f <filename> -o <outputPath>: run kduCompress on an image file, set output path
  • jp24u -sf <sourceFormat>: override source file type detection

About

Scan images for color space information

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages