[wdvltalk] Re: php image size

2003-11-18 Thread matthew
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

[wdvltalk] Re: php image size

2003-11-18 Thread Steve Miller
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 + To: [EMAIL PROTECTED] Subject: [wdvltalk] Re: php image size

[wdvltalk] Re: php image size

2003-11-18 Thread matthew
Quoting Steve Miller [EMAIL PROTECTED]: 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, The only other thing I can think of would be to check your code and make sure that you're not writing the height variable

[wdvltalk] Re: php image size

2003-11-18 Thread John Nichel
Steve Miller wrote: Actually, I already made (and corrected) that mistake! Must be something obvious, but I don't see it. Last gif I uploaded was w=242 h=50 but what was stored in the db was w=127 h=50 ??? steve What's the datatype for the width column? Some datatypes will only store up to

[wdvltalk] Re: php image size

2003-11-18 Thread John Nichel
Jon Haworth wrote: Hi Steve, [...] storing in a database, but am getting wrong values which distort the image (usually width too small). Check which column type you're using in your database - if it's a tinyint in MySQL, for example, anything over 127 won't be stored correctly (unsigned