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

Re^2: HTML image resizing with Image::Info based on max height/width

by almut (Canon)
on Jun 12, 2007 at 02:43 UTC ( [id://620621]=note: print w/replies, xml ) Need Help??


in reply to Re: HTML image resizing with Image::Info based on max height/width
in thread HTML image resizing with Image::Info based on max height/width

It's not quite as trivial as it might seem at first (most of us who have tried probably got it wrong the first time :)

Just as an example, take a width of 1000 and a height of 100. Your algorithm would compute 6000x600 (W x H), although the expected result would be 800x80 (i.e. max width doesn't exceed 800 and aspect ratio stays at 10:1)

  • Comment on Re^2: HTML image resizing with Image::Info based on max height/width

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://620621]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (1)
As of 2024-04-18 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found