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
-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
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
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
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
-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
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
7 matches
Mail list logo