[PHP] Working with external images

2003-10-13 Thread Voodoo
I'm trying to write a script that can work with images as google does. I've
got an image with some unknown width and height, and I want to be able to
get this properties and use them to create a dynamic page with new size
attributes.

For example, if the image has 400x600 px, I want to display the line

img src=someImage width=40 height=60

even if the script wasn't previosly told the image was 400x600 px. If the
image is 500x800, I want to change it to 50x80.

Can I do that with php?

Regards,

Voodoo

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Working with external images

2003-10-13 Thread Voodoo
Just found it. If anyone is interested,

$src_image=myImage;
$picsize=getimagesize($src_image);
$source_x  = $picsize[0];
$source_y  = $picsize[1];

echo $source_x. x .$source_y;

Thanks anyway,

Voodoo

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php