Image Editor

Atención: La información que aquí se presenta, pertenece a la última revisión del software. Puede no ser exactamente igual a versiones anteriores.

Requirements

GD library for PHP

Installation

Simply, copy the download files into the folder that you want to allocate the program.

How to use

<?php
include 'ImageEditor.php';

$editor = new ImageEditor('my_image.jpg');

/*
Resize an image with a maximum 30x30 pixel size
without original proportion:
$editor->resize(30,30);

Resize an image with a maximum 30x30 pixel size
with original proportion:
$editor->fixResize(30, 30);

Resize, center and cut the image into a 30x30 pixels
square:
$editor->squareResize(30);

Resize, center and fit the image into a maximum 30x30
pixels square:
$editor->squareFixResize(30);
*/


$editor->squareFixResize(30);

/*
Show to the screen:
$editor->show();

Print into a file:
$editor->save('filename.jpg');
*/


$editor->save('nueva_image.jpg');
?>