CodeIgniter Forums
How to auto resize image? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: How to auto resize image? (/thread-51646.html)



How to auto resize image? - El Forum - 05-11-2012

[eluser]Kency[/eluser]
Hello everyone

Im new with Codeigniter, i have a question is: how to auto resize image?

because i use CKEditor to add image into my content, and then show it on view.

But its size very large, and i try many times to search on google but i got nothing.

i want when image post by CKEditor if it large more than 400x200 it will auto resize

How can i do that?




How to auto resize image? - El Forum - 05-11-2012

[eluser]weboap[/eluser]
check http://ellislab.com/codeigniter/user-guide/libraries/image_lib.html
most people will resize the image at the upload process so my question is
how are you uploading your images to the server? CI Upload lib?




How to auto resize image? - El Forum - 05-11-2012

[eluser]Kency[/eluser]
@weboap thank for your reply but i dont mean that

i mean i use CKEditor to link image and display it with [IMG] tag (CKeditor do it for me)

it like when you post image on forum you have editor and you click on img tag to embed it into your post

and my situation like that, i want all my pictures post by CKeditor will be auto resize like a mod in VBBulletin Forum