Path: news.ruhr-uni-bochum.de!news.rwth-aachen.de!uni-paderborn.de!fu-berlin.de!informatik.tu-muenchen.de!Germany.EU.net!main.Germany.EU.net!mcsun!EU.net!howland.erols.net!cam-news-hub1.bbnplanet.com!news.mathworks.com!hunter.premier.net!uunet!in1.uu.net!nntp.teleport.com!usenet From: rjray@uswest.com (Randy J. Ray) Newsgroups: comp.lang.perl.announce,comp.lang.perl.misc Subject: Image::Size 1.2 uploaded to PAUSE Followup-To: comp.lang.perl.misc Date: 6 Sep 1996 16:41:28 GMT Organization: U S WEST Communications Lines: 74 Approved: merlyn@stonehenge.com (comp.lang.perl.announce) Message-ID: <50pk7o$7sv@nadine.teleport.com> Reply-To: rjray@uswest.com NNTP-Posting-Host: kelly.teleport.com X-Disclaimer: The "Approved" header verifies header information for article transmission and does not imply approval of content. Xref: news.ruhr-uni-bochum.de comp.lang.perl.announce:418 comp.lang.perl.misc:44438 The version 1.1 of this package announced a few days ago contained one nasty bug related to perl quoting and RCS (rather embarassing, given the degree to which I work with RCS daily, but we all make mistakes). It has been marked for deletion. I apologize to anyone who may have jumped on 1.1 because of the JPEG bug, only to have me do this again two days later. -R - - - - - - - - - - - Version 1.2 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 1.2: Two fixes given to me by Bernd Leibing : * Fixed bug caused by perl quoting and RCS in Size.pm * imgsize now comes as imgsize.PL and is auto-extracted as part of the make, utilizing your system's configuration to create the start-up #! line. Summary of Changes in 1.1: * Added a small, simple script called "imgsize" that gives command-line access to the library functionality. * Discovered and fixed bug in sizing JPEGs. >From the README file for 1.0: Image::Size - Determine the size of images in several common formats 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 and PNG formats. 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 rjray@uswest.com. 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 (rjray@uswest.com) 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 (rjray@uswest.com), original image-sizing code by Alex Knowles (alex@ed.ac.uk) and Andrew Tong (werdna@ugcs.caltech.edu), used with their joint permission. -- =============================================================================== Randy J. Ray -- U S WEST Technologies IAD/CSS/DPDS Phone: (303)595-2869 Denver, CO rjray@uswest.com "It's not denial. I'm just very selective about the reality I accept." --Calvin =============================================================================== .