2

Friends I downloaded one plugin for image cropper, that working fine, but after croped the image I want store the data base but I dont know how find the cropped image values,

While I am checking that time I getting like this value

console.log(result.toDataURL());
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAAFoCAYAAADHMkpRAAAgAElEQ…U9ngkdrDf9mQPIlgpI42z0moo8JpqCjAu8r4RBPCO+/X8BzNNeB1h7SyYAAAAASUVORK5CYII=

downloaded link http://fengyuanchen.github.io/cropper/ Now I dont know what will do for that solution

Masoud
  • 8,020
  • 12
  • 62
  • 123
Kanniyappan R
  • 59
  • 1
  • 6

1 Answers1

0

You can see in that plugin they have given the details to crop using PHP. On the bottom of the page you will get the example. You have to just post the value of input type file and the cropping details like height,width,x,y...etc and you have to crop this using GD library,Imagemagic etc. Follow the plugin you will get everything you need. Its very easy to integrate.

Bik
  • 553
  • 10
  • 31
  • From which line number i am getting result,i dont know friend – Kanniyappan R Oct 01 '15 at 06:51
  • I want to insert the database,for that value – Kanniyappan R Oct 01 '15 at 06:55
  • you have to post the image file like regular you do with the height,width... and other details. And then you have to crop the image using PHP. – Bik Oct 01 '15 at 06:57
  • Please look at http://stackoverflow.com/questions/2008911/cropping-image-in-php http://stackoverflow.com/questions/8929759/crop-an-image-after-resizing-in-gd-library – Bik Oct 01 '15 at 06:57
  • did you check the PHP example? You are using PHP in backend right? – Bik Oct 01 '15 at 06:59
  • Ya i am checking that exaples,from that file which file which line number i have to modified for insert the database – Kanniyappan R Oct 01 '15 at 07:03
  • You did not check that example. You don't have to change any thing. They have done a complete example. – Bik Oct 01 '15 at 08:28