I have a JPEG2000 image that I want to convert to a TIFF. The image is 78,000 x 30,462 pixels with a file size a little over 1GB. The size of an uncompressed TIFF obtained from this image is expected to be around 6GB. I have compiled ImageMagick 6.7.8-6with libtiff 4.0.1 which supports bigTIFF and also with libjasper (for jpeg2000 support). This is also confirmed by running ldd:
Code: Select all
ldd `which convert`| grep -E 'jasper|tiff'
libtiff.so.5 => /usr/local/imagemagick/tiff-4.0.1/lib/libtiff.so.5 (0x00002b6d475f4000)
libjasper.so.1 => /usr/lib64/libjasper.so.1 (0x0000003242000000)
'identify' is able to correctly report the metadata on my input file :
Code: Select all
identify cmu-2.jp2
cmu-2.jp2 JP2 78000x30462 78000x30462+0+0 8-bit DirectClass 1.1838GB 955.770u 18:34.250
I am using the following command to convert the jpeg2000 image to TIFF :
Code: Select all
convert cmu-2.jp2 /tmp/result.tiff
However, 'convert' exits as soon as the output TIFF exceeds 4GB. How can I specify that the output should be a bigTIFF ?