The image size is > 16MB.. I am wondering if there is a file size limit for imagemagick.
I just tried to read and write a tif image, but the output image has just the top strip showing, them left are black acreen...
got black screen after read a large size tif img
A few days ago we converted a 1.2GB FITS image to TIFF without complaint. Make sure you are checking the status of any PerlMagick operation. For example, we've seen
- $image->Read($filename);
- $x = $image->Read ($filename);
warn $x if "$x";
still confused
what I have done:
........................................
$x = $image->Read("$ARGV[0]");
warn "$x" if "$x";
$x = $image->Write("new$ARGV[0]");
warn "$x" if "$x";
.............................................
The only warning msg I got:
Exception 350: 0002.tif: unknown field with tag 34686 (0x877e) encountered. `TIFFReadDirectory'
which can be ignored because some unknowd tags were found..
My files shinked from 3mb to 343kb, with black screen..
........................................
$x = $image->Read("$ARGV[0]");
warn "$x" if "$x";
$x = $image->Write("new$ARGV[0]");
warn "$x" if "$x";
.............................................
The only warning msg I got:
Exception 350: 0002.tif: unknown field with tag 34686 (0x877e) encountered. `TIFFReadDirectory'
which can be ignored because some unknowd tags were found..
My files shinked from 3mb to 343kb, with black screen..
ImageMagick tries to cache large images to disk, typically /tmp. Your /tmp area may not have enough free space. Before you run your script, set the MAGICK_TMPDIR environment variable to a path with several gigabytes of free space. Assume /data:
- export MAGICK_TMPDIR=/data
perl magick.pl