![]() |
Upload, crop and resize images - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Upload, crop and resize images (/showthread.php?tid=461) |
Upload, crop and resize images - Stefan57 - 12-07-2014 I need to upload, crop and resize images for Avatar and Logos, but cannot find any good code for CI. I'm loking for something where users can drag a square over uploaded image to crop the area they want to use. Anyone here who have code for this ... Or know where I can find it? RE: Upload, crop and resize images - sv3tli0 - 12-07-2014 Please read Image manipulation library - http://www.codeigniter.com/user_guide/libraries/image_lib.html File upload library - http://www.codeigniter.com/user_guide/libraries/file_uploading.html You need just to combine them. I personally will make a sample model : Model_Images which will cover all possible manipulations over images and I will call it on successfull upload. RE: Upload, crop and resize images - Stefan57 - 12-08-2014 Thanks, I'll give it a try and will also use http://odyniec.net/projects/imgareaselect/ so users can select an area to crop, should work fine ... I hope :-) /Stefan (12-07-2014, 02:10 PM)sv3tli0 Wrote: Please read RE: Upload, crop and resize images - yettie - 12-08-2014 This helped me for the moment: https://github.com/smottt/WideImage |