Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $original = $this->config->basePath .'images/gallery/original/' . $imageId . '.jpg';
- $image_width_lge = 700;
- $image_height_lge = 340;
- $image_quality_lge = 75;
- $image_loc_lge = $this->config->basePath .'images/gallery/large/' . $imageId . '.jpg';
- require_once($this->config->basePath . 'imagemagick.php');
- $img = new ims;
- $resource = $img->create_resource();
- $img->load_image($original, $resource);
- $img->crop_image($resource, $_POST['crop']['w'], $_POST['crop']['h'], $_POST['crop']['x'], $_POST['crop']['y']);
- $img->output_image($resource, 'JPG', $image_loc_lge, $image_quality_lge);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement