[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: Determining height and width pixels of graphics
****** message to minivend-users from Frank Miedreich <miedreich@acm.org> ******
>****** message to minivend-users from Ryan Hertz <rhertz@gyb.baits.com>
>******
>
>Sarah,
>
> Sounds like it could be a very useful thing if it did exist. :-) As
>opposed to grappling with Photoshop, I would just point my browser to the
>directory where my images are stored and would load each image and look at
>the 'Page Info' to get the size. Of course, I've never had to deal with
>more than a few dozen files.
> I'm having enough fun using PERL to battle text-based problems,
>otherwise
>I'd try and figure it out! Good luck!
>
>-Ryan
>
>
>At 08:43 AM 4/21/99 , NOW Internet Coordinator wrote:
>>****** message to minivend-users from NOW Internet Coordinator
><webperson@now.org> ******
>>
>>I'd like to put the images on my search results page (or at least one
>>version of it) and I need a way to get the height and width pixels in our
>>spreadsheet database of lots of graphics. I know I can open each one in an
>>image editor, but I wondered if anyone had a Perl script for Unix or a
>>Windows 95 program which could read all the graphics in a directory and
>>ideally output name, height and width to a tab or comma delimited file.
>>
>>Ideas anyone?
>>
>>Thanks in advance.
>>------------------------------------------------------------------
>>Sarah Stapleton-Gray
>>NOW LAN and Internet manager. Please visit http://www.now.org/
>
>
This can be useful and does exist:
http://www.cpan.org/authors/id/RJRAY/Image-Size-2.901.tar.gz
>From the Readme:
Image::Size - Determine the size of images in several common formats
Version: 2.901 (See CHANGE HISTORY below)
WHAT IS IT
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, TIFF
and the PPM family of formats (PPM/PGM/PBM).
Try it out, should do what you want.
Cheers, Frank
--
Frank Miedreich
Max-Planck-Institut fuer psychologische Forschung
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list