Hi Matt.
Was thinking of that, but I am storing H and W now, and would have to alter
the db tables...but might be worth it!

steve



> From: [EMAIL PROTECTED]
> Reply-To: [EMAIL PROTECTED]
> Date: Tue, 18 Nov 2003 16:46:43 +0000
> To: [EMAIL PROTECTED]
> Subject: [wdvltalk] Re: php image size
> 
> Quoting Steve Miller <[EMAIL PROTECTED]>:
> 
>> I have been trying to upload gifs and jpgs, determine their width/height,
>> and display them.  I am using
>> 
>> $size=GetImageSize($broker_logo);
>> 
>> $logo_w=$size[0];
>> $logo_h=$size[1];
>> 
>> and storing in a database, but am getting wrong values which distort the
>> image (usually width too small).
> 
> http://www.php.net/getimagesize says that if you use $size[3], it will output
> the height="yyy" width="xxx" that can be used directly into an image tag.
> 
> Maybe it's worth storing the [3] instead of [0] and [1]?
> 
> HTH,
> 
> Matt


____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
       Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to