Path: usenet.cise.ufl.edu!newsfeeds.nerdc.ufl.edu!news.magicnet.net!newspump.monmouth.com!newspeer.monmouth.com!newsfeed.corridex.com!nntp2.savvis.net!inetarena.com!not-for-mail
From:
[email protected] (Randy J. Ray)
Newsgroups: comp.lang.perl.announce,comp.lang.perl.modules
Subject: Image::Size 2.9 uploaded to PAUSE
Followup-To: comp.lang.perl.modules
Date: 22 Dec 1998 04:20:58 GMT
Organization: ISPNews
http://ispnews.com
Lines: 81
Approved:
[email protected] (comp.lang.perl.announce)
Message-ID: <
[email protected]>
Reply-To:
[email protected]
NNTP-Posting-Host: halfdome.holdit.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:200 comp.lang.perl.modules:7098
Version 2.9 of Image::Size has been uploaded to PAUSE, and will propagate
to all CPAN sites over the next few days. Most important is a fix to a
byte-order problem in the BMP support added in 2.8.
To build and install, you will need perl 5.002 or later, and sufficient
access to install an extension.
Summary of Changes in 2.9:
* Support for BMP format in 2.8 was marred by a byte-ordering problem not
found in testing since my Linux and Windows machines are both Intel-based.
Sorry.
* Added a contributed fix for a recurring problem with GIF87a images that
have descriptors similar to GIF89a.
* Added a contributed fix to the PPM matching (prior to actual selection for
sizing) that was caused by some Win32 versions of Perl not handling "\n"
natively.
* While at that last one, I made an attempt to fix any MacOS concerns that
may be triggered by the same consideration.
* Added better error handling to the imgsize script and added a little more
to the manual page.
>From the README file for 2.9:
NOTE: Version 2.9 fixes a bug in the newly-added BMP support from 2.8. The
2.8 files will be marked for deletion from CPAN. Use this version,
instead.
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, TIFF, PNG and
the PPM family of formats (PPM/PGM/PBM).
I did this because my old WWW server generated a lot of documents on demand
rather than keeping them in static files. These documents not only used
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].
This package is copyright (c) 1998 by Randy Ray (
[email protected]) and is
made available to the Perl public 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. Cloyce Spradling
<
[email protected]> contributed the TIFF sizing code and test images.
A fix for reading binary data on PC-ish operating systems was contributed by
Silas Dunsmore <
[email protected]>. Aldo Calpini <
[email protected]>
sent in code that was easily adapted to support BMP images (Windows bitmaps).
Fix for a recurring problem with GIF87a files contributed by Matthias Schmitt
<
[email protected]>. Fix for problems with PPM formats on some Win32
versions was contributed by Randy Kobes <
[email protected]>.
--
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Randy J. Ray
[email protected]
Campbell, CA
[email protected]
<A HREF="
http://www.svsm.org">Silicon Valley Scale Modelers</A>