Created
August 7, 2012 21:38
-
-
Save govaniso/3289601 to your computer and use it in GitHub Desktop.
Re dimensionar imagen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// *** Incluimos la clase | |
include("resize-class.php"); | |
// *** 1) inicializamos la clase, e indicamos la imagen a tratar | |
$resizeObj = new resize('sample.jpg'); | |
// *** 2) Establecemos el nuevo tamaño de la imagen (options: exact, portrait, landscape, auto, crop) | |
$resizeObj -> resizeImage(200, 200, 'crop'); | |
// *** 3) Guardamos | |
$resizeObj -> saveImage('sample-resized.jpg', 100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment