Imagefly is a project mainly written in PHP, it's free.
Forked from http://code.google.com/p/kohana-3-imagefly/
Forked from: http://code.google.com/p/kohana-3-imagefly/
This is a Kohana 3 module for resizing and caching images directly in your HTML markup via the image src attribute.
Just like any Kohana module, enable and go!
Add the imagefly folder to your Kohana 3 modules directory or
$ git submodule add [email protected]:avillagran/imagefly.git modules/imagefly
$ git submodule update --init
Enable in your bootstrap.php
Enable the Kohana 3 Image module (required for imagefly)
Kohana::modules(array(
'image' => MODPATH.'image',
'imagefly' => MODPATH.'imagefly',
));
You know how it's done. Copy the config.php file to your application/config directory and edit to your liking.
Here's what you can do with imagefly in you HTML markup.
You can see actual examples over at this blog post: http://www.frontieradvertising.com.au/voice/2011/03/02/kohana-3-image-resizing-module-imagefly/
<img src="/imagefly/w100-c/path/to/image.jpg" />
OR
<img src="/imagefly/h100-c/path/to/image.jpg" />
<img src="/imagefly/w100-h150-c/path/to/image.jpg" />
<img src="/imagefly/w100/path/to/image.jpg" />
<img src="/imagefly/h100/path/to/image.jpg" />
<img src="/imagefly/w100-h100/path/to/image.jpg" />
Imagefly will work on the Kohana 3.0.x and 3.1.x branch.