resize.php code example
Example: php resize
Class resize
{
// *** Class variables
private $image;
private $width;
private $height;
function __construct($fileName)
{
// *** Open up the file
$this->image = $this->openImage($fileName);
// *** Get width and height
$this->width = imagesx($this->image);
$this->height = imagesy($this->image);
}
}