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

Resizing a jpg file

From: gak (
Date: Tue 20 Nov 2001 - 13:47:39 UTC

  • Next message: gak: "Re: Resizing a jpg file"

    The capabilities of Imager are very exciting. We look
    forward to putting them to use. Tried the brief
    script shown at the top of the documentation, but I'm
    getting an error:

    "Can't call method 'write' on an undefined value.."

    It then references the scaled write command. Here is
    the code. What am I missing?

    use CGI;
    use CGI::Carp qw/fatalsToBrowser/;

    use Imager qw(init);


        || print "failed: ",$img->{ERRSTR},"\n";
        || print "failed: ",$scaled->{ERRSTR},"\n";
    print "Content-type: text/html\n\n";
    print "
    The file has been resized.


    Do You Yahoo!?
    Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.