• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Upload, crop and resize images

#1
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?
Reply

#2
Please read
Image manipulation library - http://www.codeigniter.com/user_guide/li...e_lib.html
File upload library - http://www.codeigniter.com/user_guide/li...ading.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.
Best VPS Hosting : Digital Ocean
Reply

#3
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
Image manipulation library - http://www.codeigniter.com/user_guide/li...e_lib.html
File upload library - http://www.codeigniter.com/user_guide/li...ading.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.
Reply

#4
This helped me for the moment:

https://github.com/smottt/WideImage
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.