0
내가 jQuery를 사용하여 이미지를 자르려
, CodeIgniter의jquerycropping, CodeIgniter를, PHP
JQuery와에나는 네 이미지 x1=249 x2=326 y1=194 y2=271 w=77 h=77
쿼리를 수행 CodeIgniter의에서
function do_crop()
{
$x=249;
$y=194;
$w=77;
$h=77;
$path= 'system/application/';
$config = array(
'image_library' => 'gd2',
'source_image' => $path.'/jag1/flowers.jpg' ,
'new_image' => $path.'/jag2/flowers.jpg',
'maintain_ration' => false,
'width' => $w,
'height' => $h,
'x_axis' => $x,
'y_axis' => $y
);
$this->load->library('image_lib');
$this->image_lib->initialize($config);
if (! $this->image_lib->crop())
{
echo $this->image_lib->display_errors();
}
$this->image_lib->clear();
}
내가립니다받을 좌표 취득 영상. 그러나 문제는 y는이 이미지의 exacty X/Y를 얻기 위해 사용 .offset()