jquerycropping,codiegniter,php
<p>I want to crop the image using jquery,codigniter</p>

<p>in jquery i get four coordinate  of image x1=249 x2=326 y1=194 y2=271 w=77 h=77</p>

<p>in codiegniter done the query</p>

<p>function do_crop()
    {</p>

<pre><code>                       $x=249; 
            $y=194; 
            $w=77; 
            $h=77; 
            $path= 'system/application/';   
            $config = array(
           'image_library' =&gt; 'gd2',
           'source_image' =&gt; $path.'/jag1/flowers.jpg' , 
            'new_image' =&gt; $path.'/jag2/flowers.jpg',
           'maintain_ration' =&gt; false, 
           'width' =&gt; $w,
           'height' =&gt; $h,
             'x_axis' =&gt; $x,
           'y_axis' =&gt; $y
          );

          $this-&gt;load-&gt;library('image_lib');
          $this-&gt;image_lib-&gt;initialize($config);
          if ( ! $this-&gt;image_lib-&gt;crop())
          {
              echo $this-&gt;image_lib-&gt;display_errors();
          }       
            $this-&gt;image_lib-&gt;clear();
}
</code></pre>

<p>i get cropped image. But problem is don't get exact cropped image x,y coordinate  problem</p>

<p>Please correct the coordinate</p>
