Skip to content

Instantly share code, notes, and snippets.

@comstock
Created April 28, 2023 19:41
Show Gist options
  • Select an option

  • Save comstock/d34f098f2bc672b7d9ba0e1ceb358a17 to your computer and use it in GitHub Desktop.

Select an option

Save comstock/d34f098f2bc672b7d9ba0e1ceb358a17 to your computer and use it in GitHub Desktop.
Convert bitonal TIFF to 8-bit JPEG2000 (JP2) file

Convert directory of bitonal TIFF files to 8-bit TIFF files

mogrify -format tif -depth 8 ./images_in/*.tif

Convert directory of 8-bit TIFF files to lossless 8-bit JP2 files

opj_compress -OutFor jp2 -ImgDir ./images

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment