The purpose of this documentation is to inform and help you with anything related to Imager Gallery.
Sections: Main - Installation - Template script - What's new - Imager Resizer - FAQ - Contact - License
Imager Resizer information
- Imager Resizer is a small ISAPI dll that was coded for being used along with Imager Gallery. It don't need any installation on the webserver which makes it a really good choice if you don't have the possibility to get custom components installed. Allthough, it needs a webdirectory with Scripts and Executables permissions set. Most /cgi-bin/ dirs seems to have this as default so it shouldn't really be a problem. Read on below on how to check if your host will work with Imager Resizer.
- Imager Resizer is the release of Imager Gallery 5.4 a standalone project. It will be listed on www.crazybeavers.se along with Imager Gallery and some of my other projects.
How to use Imager Resizer
- Installation and testing
- Upload Imager.dll to any directory with "Scripts and Executables" permission on your webserver. In most cases this would be /cgi-bin/.
- When it has been uploaded you can check if it works by opening your webbrowser and going to the adress of the dll and adding the test parameters. It would look something like this: http://www.mysite.com/cgi-bin/Imager.dll?Test=True. Note that Test=True is case sensitive to typing test=true won't work. It should say that Imager v1.4 is working fine and it shouldn't try to download anything. If it does then you don't have the correct permissions set for the directory.
- Syntax
- <img src="/cgi-bin/Imager.dll?Image=C:\MyImage.jpg&Width=200&Height=150&Compression=80">
- The above example would load C:\MyImage.jpg and resize it to 200x150 pixels. It will set the compression rate to 80 and then send the resulting image to the client. Imager Resizer won't allow to open any files other then JPG, PNG, BMP and GIF so it can't really hurt you even though it needs the absolute path. An easy way to get the absolute path from a webpath is using the asp function Server.Mappath().
Credits
- GIF Image Loading
- PNG Image Loading