Re: [PHP] Re: Image size?

2006-01-11 Thread Warren Vail
Try; http://www.php.net/manual/en/function.getimagesize.php Warren At 09:16 AM 1/11/2006, M. Sokolewicz wrote: zerof wrote: William Stokes escreveu: Hello, Can I get pixel sizes from a uploaded web applicable image with PHP? I mean width and height as pixels. If so How? Thanks -Will

RE: [PHP] Re: image size?

2004-09-14 Thread Ed Lazor
-Original Message- Let me explain more fully: I call a script like this: img src=image.php?file=file_name_here.jpg The script figures out if the image named in $_GET['file'] is portrait or landscape, and creates a thumbnail of the same orientation. I would like to get the x

Re: [PHP] Re: image size?

2004-09-13 Thread Ryan W Sims
What if the values for x and y are not known? I have a function that returns a thumbnail of a larger image; it calculates the size of the created image based on the dimensions of the original. Paul Birnstihl wrote: Ed Lazor wrote: Is there a way to get the size of an image created using the

RE: [PHP] Re: image size?

2004-09-13 Thread Ed Lazor
I think you'll have to use the imagex and imagey functions to get the dimensions of the thumbnail in order to calculate the size. -Original Message- What if the values for x and y are not known? I have a function that returns a thumbnail of a larger image; it calculates the size of

Re: [PHP] Re: image size?

2004-09-13 Thread Ryan W Sims
Let me explain more fully: I call a script like this: img src=image.php?file=file_name_here.jpg The script figures out if the image named in $_GET['file'] is portrait or landscape, and creates a thumbnail of the same orientation. I would like to get the x and y values of the image out of this

RE: [PHP] Re: image size?

2004-09-09 Thread Ed Lazor
-Original Message- Ed Lazor wrote: Is there a way to get the size of an image created using the imagecreate function? I'm guessing it would be xsize x ysize x colour depth = size in bits ? What's the default color depth? -Ed -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: image size?

2004-09-09 Thread Paul Birnstihl
Ed Lazor wrote: -Original Message- Ed Lazor wrote: Is there a way to get the size of an image created using the imagecreate function? I'm guessing it would be xsize x ysize x colour depth = size in bits ? What's the default color depth? -Ed It looks to me like it's 8bit for imagecreate