Is it possible to re-size an image while displaying an image in website?/ How to re-size an image after image been uploaded?
While adding i am uploading original image into original folder and creating 1 thumbnail uploading into thumb folder. But in website i need to display images in so-many places with different dimension. So i need to re-size the images for required size to display to avoid image shrink.
or Should i need to create an image for all dimensions i needed while uploading?
Of course, it is possible. Besides, it is, possibly, the best approach: to create necessary thumbnail images by request. If your website is in development stage you will never guess what dimensions will create the designer tomorrow. And you will return to your uploading function again and again to fit it for new design. It worth removing hard dependency between design and logic.
I’m not sure about codeignitor. Anyway, use something like this in your templates:
Usage: