Forum OpenACS Q&A: defining image size...

Collapse
Posted by David Kuczek on
The 3.2.5 file-storage stores files and images in AolserverHOME/servers/...

The files are accessed via the download filter fs_file_downloader. Whenever I want to show an image from the file-storage I append the following html code:

<img src=\"[fs_url_stub]/download/foo-image=version_id=xyz\" border=0>

How can I find out the size of the image before I display it? I tried it via ns_gifsize, but the download folder is obviously just a filter and ns_gifsize can't call it.

The other problem ist that permissions get checked every time the image is being called? How can I directly append the image without using the download filter?

Any hints?