Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $sourceImage = imagecreatefromjpeg($image);
- $tempImg = imagecreatetruecolor($data[2],$data[3]);
- imagecopy($tempImg,$sourceImage, 0, 0, $data[0], $data[1], $data[2], $data[3]);
- imagejpeg($tempImg,$destImage,90);
- imagedestroy($tempImg);
- chmod($destImage,0775);
- // these next two lines don't work
- $original_img = imagecreatefromjpeg($destImage);
- $cropped_destImage = imagecropauto($original_img , IMG_CROP_THRESHOLD, 2, 16777215);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement