(none) imager-devel
/ help / lists / applications / search /
 

Error on paste/rubthrough function

From: William Kern (
17440@xyz.molar.is)
Date: Mon 10 Dec 2007 - 05:24:52 GMT

  • Next message: Tony Cook: "Re: Error on paste/rubthrough function"

    I have a working Imager install that happily converts file types and
    performs most other Imager functions.

    However, when I try the paste or rubthrough function I get the following
    error:

    "Can't use string ("source.gif") as a HASH ref while "strict refs" in
    use at /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Imager.pm
    line 630."

    The relevant code is:

    #!/usr/bin/perl
    use strict;
    use warnings;
    use Imager;
    my $source="source.gif";
    my $original="original.gif";
    my $Rimage = Imager->new;
    $Rimage->open(file => "$original") or die $Rimage->errstr;
    my $left = 10;
    my $top = 5;
    $Rimage->paste(left => $left, top => $top, img => $source);
    $Rimage->write(file=>'result.gif');
    exit;

    OS is CentOS5, but I can reproduce it on an older Trustix 2.2 runing 5.8.5.
    Again. all other Imager functionality is fine (i.e. rotate, etc).

    Any ideas?

    Sincerely,

    -bill



  •