Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Fix this HTML-ish image sizerby sulfericacid (Deacon) |
on Jun 18, 2007 at 17:49 UTC ( [id://621836]=perlquestion: print w/replies, xml ) | Need Help?? |
sulfericacid has asked for the wisdom of the Perl Monks concerning the following question:
This was posted as an untested solution to a SOPW a week or so past and it was stated by a monk that there was indeed an error in the calculations. Can someone provide a working solution keeping my methods thus far intact? I know it can be done via Image::Image or another module but those aren't available in my workspace and I'd like to see how close I got to the final solution. The question was: the user needed a way to determine the h/w of an image and output an html-resized version of it so that both h/w are less than a max value.. AND the image has to stay the same aspect ratio.
"Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us" sulfericacid
Back to
Seekers of Perl Wisdom
|
|