Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^2: Tk image resizer

by Discipulus (Monsignor)
on May 06, 2014 at 07:23 UTC ( #1085142=note: print w/replies, xml ) Need Help??

in reply to Re: Tk image resizer
in thread Tk image resizer

this was born as quick hack, as always..
I think is simpler to remember that you need to pass a width X height x infix then others things. You can easyly modify the code to change both dimension if it is what you want (from module documentation):
resize($width, $height, $constraint); Returns a GD::Image object for the new, resized image. Original image +is not modified. This lets you create multiple thumbnails of an image + using the same Image::Resize object. First two arguments are required, which define new image dimensions. B +y default resize() retains image proportions while resizing. This is +always what you expect to happen. In case you don't care about retain +ing image proportions, pass 0 as the third argument to resize().

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1085142]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (12)
As of 2018-06-18 18:11 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (110 votes). Check out past polls.