[Solar-talk] use getimagesize() in a view

Jeff Surgeson solar at 3hex.com
Mon May 12 12:05:34 CDT 2008


Hi Dymtro
> Try if the following works:
>getimagesize(Solar::factory('Solar_Uri_Public')->quick('path/to/image.jpg'));

Thanks I had tried a differant way but I think same result which did not work 
either, hence my confusion.

My way:
getimagesize($this->publicHref('path/to/image/image.jpg));
Your way:
getimagesize(Solar::factory('Solar_Uri_Public')->quick('path/to/image/image.jpg'));

both return the following path:

"/ecosundecks.com/Public/Ecosundecks/images/gallery/4826b9d70e48f_43f5bb4fa31af.jpg"
If I paste it into my browser I get a valid image, so the path is correct.

In my doc root, /ecosundecks.com/Public/ I have a symbolic link "Ecosundecks" 
which points to ../../source/ecosundecks/App/Public

and in /source/ecosundecks/App/Public I have /images/gallery/

So I can not see why it wont work. :-(

Thanks anyway will have to just keep digging.

-- 
...........::::::...........
Jeff Surgeson / South Africa


More information about the Solar-talk mailing list