This gem contains classes used by the Stanford University Digital Library to create JP2 image derivatives.
Requires image processing software - see prerequisites section below.
To use the JP2 creation method, you first instantiate the image object with an input image and then operate on it.
require 'assembly-image'
input_image = Assembly::Image.new('/full/path/to/file.tif')
output = input_image.create_jp2(output: '/full/path/to/output.jp2') # generate a new JP2 in the specified location
bundle exec rspec
Download and install demonstration binaries from Kakadu: http://kakadusoftware.com/downloads/
Note: libvips may require a significant amount of space for temporary files. The location for this can be controlled by the TMPDIR environment variable.
brew install libvips
Download latest version from: http://www.sno.phy.queensu.ca/~phil/exiftool
tar -xf Image-ExifTool-#.##.tar.gz
cd Image-ExifTool-#.##
perl Makefile.PL
make test
sudo make install
brew install exiftool