My favorites | Sign in
Project Logo
                
Show all Featured downloads:
dynamicimage-0.2.2.zip
Show all Featured wiki pages:
ChangeLog
People details
Project owners:
  defreyssinet

Kohana PHP has an image library that provides tools to manipulate an image and then save it to a desired location. DynamicImage is designed to deliver an existing image stored on the server to the client at any size, using one of three standard formats. The resulting image is not effecting the source, this library dynamically alters the image and delivers a new modified copy - the source remains untouched.

This library is designed to plug into Kohana PHP as a module, but you could use the library independently without the integrated controller.

KDynamicImage Use

Using clean URLs (recommended)

To access images with KDynamicImage using URL's without GET arguments, use the following syntax to load an image without modification :

http://<yourserver>/dynamicimage/<relative>/<path>/<to>/<file name>.<file extension>

To augment the resource, insert a string formatted correctly between the file name and extention, separated by '.' so the full path still looks valid with a proper extension.

Note : The extension must be correct to the image resource, not the format you wish to receive the file in.

To use this within the URL, use the following syntax :

http://<yourserver>/dynamicimage/<relative>/<path>/<to>/<file name>.DiSw100px-h150px-mrwidth-fpng-mt1-cr0_5-bkF2C14F.<file extension>

Using clean URLs can help with local caching within the web browser and ISPs. KDynamicImage can be processor intensive if you are serving a lot of images to a lot of clients simultaneously. Using clean URLs will help force browsers to cache the resource.

Using dynamic GET variables

To access images with KDynamicImage using the GET method, use the following syntax to load an image without modification :

http://<yourserver>/dynamicimage/?file=<relative>/<path>/<to>/<filename>

Using the built in controller you can add additional arguments to the GET request to augment the original resource :

Although the module is designed to work with Kohana PHP, the library itself could exist independently of Kohana. More details of this will be available on Google Code where you can download the latest release or checkout the latest revisions from SVN.

This library requires GD 2.0 for PHP to be installed on your web server









Hosted by Google Code