Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Just another Perl shrine
 
PerlMonks  

Re: Manipulating Images (height and width)

by sauoq (Abbot)
on Sep 08, 2002 at 15:22 UTC ( [id://196080]=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)

If you only really care how the image is displayed on a web page, another, lighter, solution would be to use Image::Info to get the dimensions and some simple arithmetic to determine the desired height and width attributes for your img tag.

If you actually want to change the size of the image use one of the other solutions mentioned. Just so you know, Image::Magick is a sledgehammer and GD is somewhat limited in the formats it will deal with.

-sauoq
"My two cents aren't worth a dime.";
  • Comment on Re: Manipulating Images (height and width)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://196080]
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.