[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] GIF image size



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

At 3:23 PM +0200 5/14/98, Carl Johan Berglund wrote:

} Maybe this is more of a graphic file format size than a MacPerl one, but...
}
} Is there a way for MacPerl to read a GIF file, and figure out the size (in
} pixels) of the graphics?

#!perl
use Image::Size;
($globe_x, $globe_y) = imgsize("globe.gif");

Image::Size is available at any CPAN archive.  Read the built in pod
documentation with Shuck; there are several ways for it to report the size
back to you.


}
}
} ___Carl_Johan_Berglund_________________________
}    Adverb Information
}    carl.johan.berglund@adverb.se
}    http://www.adverb.se/
}

- -----
Paul J. Schinder
schinder@pobox.com

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBNVr4m1ZaVc52j0XhEQL5BgCfZWwwvp1uZ7bW+0KrmUaVkqZwTMYAoN+4
gU/5a/HNuJ8YnBJYu5huFQ2I
=SOLY
-----END PGP SIGNATURE-----

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch