> Hello,
> 
> > my $image = Image::Magick->new;
> > # trouble
> > open(IMAGE, '<images/products/unprocessed/"$sku"_unprocessed.jpg');
> open(IMAGE, "<images/products/unprocessed/$sku_unprocessed.jpg");
> 
> You need to use double quotes if you want it to use the variable.
> or if you reall wanted single quotes you could have done it like this
> 
> '<impages/products/unprocessed/' . $sku . '_unprocessed.jpg');
> 
> > $image->Read(file=>\*IMAGE);
> > close(IMAGE);
> > # trouble
> > $image->Resize(geometry=>'"$height"x"$width"');
> this should be written (geometry => "$heightx$width")
> 
> > # trouble
> > $image->Write(filename=>'/var/www/localhost/htdocs/"$sku".jpg');
> See above answer
> 
> hth,
> Paul

Fixed, thanks!

- Grant

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to