Next message: Neeraj - Khandelwal: "Re: Cant read TIFF file: core dump (fwd)"
This script is ok (except the typo in the $string line). I suspect the
TIFF file is odd in some way. You can add the line:
To have it log lowlevel activity to file, those help in debugging the
problem. If the resulting log is not huge you can post it to the mailing
It would be ideal if you could put the image somewhere on the web and we
could fetch it from there but you can also send me the tiff file and I
will put it up (if I don't see what the issue is right away).
One thing about libtiff is that it can be set up in different ways (with
or without jpeg compression for example). In addition to that some
tiff is extremely varied in how it is used - you can even consider it more
of a general 2d data format than image format.
In anycase it should never crash and this should be considered a bug (if
not in Imager then in libtiff).
On Tue, 22 Jan 2002, Neeraj - Khandelwal wrote:
> Hi all,
> I am trying to read a tiff file in my perl script using the Imager's
> read() method:
> use Imager qw(:handy);
> use strict;
> use vars qw($i $fname $font @bbox $xs $ys $string $d $wx $shadowcolor
> $logocolor $bgcolor);
> $string='(This is not a test');
> $i->read(file=>"0401110053.tiff", type=>'tiff') or die $i->errstr; # gets
> type from name
> This is where the script crashes, giving a segmentation fault. I tried
> attaching the tif file to this mail but the mail was rejected by the list
> server probably due to oversize. The tiff file opens up nicely on
> Windows systems and it does not seem to be corrupted. I am a newbie
> with images and was also wondering if there are different types of tiff
> formats some of which are not suppoted by Imager?
> Any help gratefully appreciated.