Hoy me he encontrado con una clase PHP para recortar imágenes. He aquí el código para la clase (solo le he añadido un pequeño detalle para poder elegir el tamaño de la imagen resultante): class cropImage { var $imgSrc,$myImage,$cropHeight,$cropWidth,$x,$y,$thumb; function setImage($image) { //Your Image $this->imgSrc = $image; //getting the image dimensions list($width, $height) = getimagesize($this->imgSrc); […]
PHP: clase para recortar imágenes
Publicado