Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Manipulating Images (height and width)

by LTjake (Prior)
on Sep 08, 2002 at 10:49 UTC ( [id://196028]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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: Re: Manipulating Images (height and width)
by somniculosus (Initiate) on Sep 08, 2002 at 11:09 UTC
    .. may I also suggest a pair of scissors?
Re: Manipulating Images (height and width)
by hacker (Priest) on Sep 08, 2002 at 15: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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://196028]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.