I have uploaded an image with the resolution 1600×1200. How can I show users 60×60 and 200×200 without creating thumbnails and uploading again. (like phpthumb library) in CodeIgniter?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Codeigniter comes with its own image library which can resize images. This example is from the documentation, just edit the $config variable:
You can also create thumbnails dynamically (that is, without saving them to the hard drive) but that requires a lot of memory so I would discourage that.
The image class can also crop the image if you need that. I use it to create thumbnails in the application I am currently working on…
Visit the documentation: http://codeigniter.com/user_guide/libraries/image_lib.html