get the width and height of an image.
Permalink
Hello,
I am busy making an slideshow that shows 2 images side by side. And because of that i want to resize the images so that you can see the whole image.
Now the problem is that when i use 'getimagesize($f->getRelativePath())' I get an open_basedir error.
Is there a solution to get the width and the height of the image?
grtz
I am busy making an slideshow that shows 2 images side by side. And because of that i want to resize the images so that you can see the whole image.
Now the problem is that when i use 'getimagesize($f->getRelativePath())' I get an open_basedir error.
Is there a solution to get the width and the height of the image?
grtz
you want the absolute path, not the relative path. the relative path is just for urls, but that function needs the system path.
And can you tell me how I can get the Absolute path?
I tought about that to, but because I could not find a way to get the Absolute path I thought there was another way to get the width and height of the image.
thx for the reply...
I think i found how i can get the absolute path. => getpath()
I tought about that to, but because I could not find a way to get the Absolute path I thought there was another way to get the width and height of the image.
thx for the reply...
I think i found how i can get the absolute path. => getpath()
yeah, think it's getPath