I want to resize a image using server side script (eg: Smart Image Resizer ), so it will send request to a script called image.php
<img src="/image.php/media/bg.jpg?width=320&height=240"/>
So script will take image and its dimensions for cropping.Instead of sending request to image.php or any server scripting why cant i pass all the img src request to image.php automatically. Using .htaccess or something?
<img src="/media/bg.jpg?width=320&height=240"/>
And some config should automatically take it in and pass thisto your image resizer script and return the image result. Is it possible?
Thanks
.htaccessinside the/media/folder that redirects image requests to image.php?.htaccessinside the media directory and have it redirect all requests there to a php script. Then I would have the php script get the requested dimensions, check to see if there is a file that exists for that image in those dimensions (cached copy) and if so, display that, if not, resize and save to cache.