in reply to Manipulating Images (height and width)

Might I also suggest GD? You can get the image size with
($width,$height) = $image->getBounds()
and resize it with
$image->copyResized($sourceImage, $dstX, $dstY, $srcX, $srcY, $destW, +$destH, $srcW, $srcH)
See the docs for more info.

Replies are listed 'Best First'.
Re: Manipulating Images (height and width)
by hacker (Priest) on Sep 08, 2002 at 19:16 UTC
    Might I also suggest GD?

    Sure, unless of course, the image happens to be a .gif image, in which case you'll need to patch the stock GD to add that capability back in.

    Note: This path is NOT recommended due to the restrictive licensing and moral issues associated with using .gif images, and circumventing that license by patching GD to restore the capability that was removed due to it.

    In short, use the ImageMagick Perl API to do the conversions and resizing you need.

A reply falls below the community's threshold of quality. You may see it by logging in.