Path: usenet.cise.ufl.edu!huron.eel.ufl.edu!usenet.eel.ufl.edu!decius.ultra.net!info.cs.uofs.edu!www.nntp.primenet.com!globalcenter1!news.primenet.com!nntp.primenet.com!feta.direct.ca!newsfeed.direct.ca!news.he.net!news.rain.net!news.teleport.com!not-for-mail
From:
[email protected] (Randy J. Ray)
Newsgroups: comp.lang.perl.announce,comp.lang.perl.modules
Subject: Image::Size 2.4 available on CPAN
Followup-To: comp.lang.perl.modules
Date: 3 Sep 1997 21:17:22 GMT
Organization: US WEST Information Technologies TSS
Lines: 61
Sender:
[email protected]
Approved:
[email protected] (comp.lang.perl.announce)
Message-ID: <
[email protected]>
Reply-To:
[email protected]
NNTP-Posting-Host: gadget.cscaper.com
X-Disclaimer: The "Approved" header verifies header information for article transmission and does not imply approval of content.
Xref: usenet.cise.ufl.edu comp.lang.perl.announce:15 comp.lang.perl.modules:661
Version 2.4 of Image::Size has been uploaded to PAUSE, and will propagate
to all CPAN sites over the next few days.
To build and install, you will need perl 5.002 or later, and sufficient
access to install an extension.
Summary of Changes in 2.4:
* Small bug in jpegsize, not returning the string 'JPG' as the third element
of the returned list. Figures I have a half-documented feature, and someone
actually uses it. :-)
>From the README file for 2.4:
Image::Size is a library based on the image-sizing code in the wwwimagesize
script, a tool that analyzes HTML files and adds HEIGHT and WIDTH tags to
IMG directives. Image::Size has generalized that code to return a raw (X, Y)
pair, and included wrappers to pre-format that output into either HTML or a
set of attribute pairs suitable for the CGI.pm library by Lincoln Stein.
Currently, Image::Size can size images in XPM, XBM, GIF, JPEG, PNG and the
PPM family of formats (PPM/PGM/PBM).
I did this because my WWW server generates a lot of documents on demand
rather than keeping them in static files. These documents not only use
directional icons and buttons, but other graphics to annotate and highlight
sections of the text. Without size attributes, browsers cannot render the
text of a page until the image data is loaded and the size known for layout.
This library enables scripts to size their images at run-time and include
that as part of the generated HTML. Or for any other utility that uses and
manipulates graphics. The idea of the basic interface + wrappers is to not
limit the programmer to a certain data format.
Please send any reports of problems or bugs to
[email protected]. I wouldn't
mind a short note to know that you're using this, just so I can justify its
continued development to my manager :-). (In seriousness, a rough idea of
how many others are using this will help promote its upkeep.)
This package is copyright � 1996 by Randy Ray (
[email protected]) and is
placed in the public domain under terms of the Artistic License used to
cover Perl itself. See the file Artistic in the distribution of Perl 5.002 or
later for details of copy and distribution terms.
Perl module interface by Randy J. Ray (
[email protected]), original
image-sizing code by Alex Knowles (
[email protected]) and Andrew Tong
(
[email protected]), used with their joint permission.
Some bug fixes submitted by Bernd Leibing <
[email protected]>.
PPM/PGM/PBM sizing code contributed by Carsten Dominik
<
[email protected]>. Tom Metro <
[email protected]> re-wrote the JPG and
PNG code, and also provided a PNG image for the test suite. Dan Klein
<
[email protected]> contributed a re-write of the GIF code.
A fix for reading binary data on PC-ish operating systems was contributed by
Silas Dunsmore <
[email protected]>.
--
===============================================================================
Randy J. Ray -- U S WEST Technologies IAD/CSS/DPDS Phone: (303)595-2869
Denver, CO
[email protected]
"It's not denial. I'm just very selective about the reality I accept." --Calvin