Image Resize for Frog
With the Image Resize plugin enabled, you can easily create thumbnails of your images. This plugin was created by Peter Gassner for the deliciously small and elegant Frog CMS.
It was inspired by the Drupal Image Cache module. The image resize functions are taken from Drupal and adapted for Frog CMS.
The plugin can be installed via Github, where you can either download a ZIP-file or checkout the Git repository.
Patches and suggestions are very welcome!
How does it work?
This module relies on some mod_rewrite magic: If the requested thumbnail exists, Apache knows this and delivers the file to the browser. If the file doesn't exist, Apache hands control over to Frog CMS.
Frog won't find the file either, so it sends a page-not-found message. This is the moment where the Image Resize plugin suddenly feels responsible. It checks whether an image without the dimension specifier exists (flower.jpg) and converts it into a thumbnail with the requested name (flower.230x150.jpg). The next time someone asks for that file it will be there!