Hi.
I want, when someone want to upload a picture, to crop to resize to 800px x 600px and if is larger when i resizeit, to crop. Then, the result i want to upload on the server.
It is possible that?
Thanks.
crop an image and save it
Moderator: General Moderators
Re: crop an image and save it
Also look into imagick.
You will need to install the imagick pecl module.
Instructions can be found at http://valokuva.org/
Once installed it's as easy as
You will need to install the imagick pecl module.
Instructions can be found at http://valokuva.org/
Once installed it's as easy as
Code: Select all
$image = new Imagick($file_name);
$image->cropThumbnailImage(800, 600);
$image->writeImage($new_file_name);