jonnyfolk has asked for the wisdom of the Perl Monks concerning the following question:
This fails because the Read() is not finding the file. If I change the path to something like "../new.jpg"; the subroutine succeeds and the Write() occurs in "../home/edit/etc". My question is why does the module recognise the path for the Write() function, but not the Read()?sub imgmk { my $imgmkpath = "../home/edit/docs/$myfile/$tstamp.$extension"; my $src = new Image::Magick; $src->Read("$imgmkpath"); my ($ox,$oy) = $src->Get('width','height'); my $r = $ox / 300; $src->Resize(width=>300,height=>$oy/$r); $src->Write("../home/edit/docs/$myfile/$tstamp.$extension"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: path problem with ImageMagick
by pbeckingham (Parson) on Aug 11, 2004 at 16:40 UTC | |
|
Re: path problem with ImageMagick
by Roger (Parson) on Aug 11, 2004 at 16:25 UTC |