Have just about exceeded my technical limitations getting IM installed via DarwinPorts onto Mac OS X 10.5.6.
I wanted to get into command line conversion because I have a need to convert a large number of very big JPEG2000 images to TIFF. I succeeded in getting Jasper installed and getting IM to recognise it. I converted a smaller JP2 file to TIFF, worked superbly - thank you!
However, when I went for one of the bigger ones, the following happened:
Code: Select all
$ mogrify -format tiff /Users/matthewk/Desktop/Nissl_Sagittal_91_SectionA.jp2
mogrify(56710) malloc: *** mmap(size=1107787776) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
error: cannot decode code stream
mogrify: unable to decode image file `/Users/matthewk/Desktop/Nissl_Sagittal_91_SectionA.jp2' @ jp2.c/ReadJP2Image/389.
The file is really, really large - 200 megapixels - and won't convert at full size using the shareware utility GraphicConverter (which I bought in order to do this job!).
Is there any useful workaround for this limitation? Is it a limit of the OS, as I suspect? The allocation size seems to be about a gigabyte and I have 4GB of RAM installed - and the OS X VM as well, of course.
I don't mind if it's slow, as long as it works.
Thanks for any help or pointers. As I say I am stretching the limits of my knowledge here so please be gentle!
Cheers,
Matthew.