Resize and Crop images on-the-fly.
-by Sujeet sujeetkv90@gmail.com
Uses effective Browser-Server caching to overcome repeated image processing.
Usage Examples:
With Url-Rewrite (Recommended):
<img src="app_images/index/assets/images/image.jpg" />
<img src="app_images/index/150x200/assets/images/image.jpg" />
<img src="app_images/index/150x200-c/assets/images/image.jpg" />
<img src="app_images/index/150x200-r/assets/images/image.jpg" />
<img src="app_images/index/150x200-c-r/assets/images/image.jpg" />Without Url-Rewrite:
<img src="index.php/app_images/index/assets/images/image.jpg" />
<img src="index.php/app_images/index/150x200/assets/images/image.jpg" />
<img src="index.php/app_images/index/150x200-c/assets/images/image.jpg" />
<img src="index.php/app_images/index/150x200-r/assets/images/image.jpg" />
<img src="index.php/app_images/index/150x200-c-r/assets/images/image.jpg" />Resize Options:
| Example | Description |
|---|---|
150x200 |
widthxheight |
150x200-c |
widthxheight-crop |
150x200-r |
widthxheight-maintain_ratio |
150x200-c-r |
widthxheight-crop-maintain_ratio |