1Class resize
2{
3 // *** Class variables
4 private $image;
5 private $width;
6 private $height;
7
8 function __construct($fileName)
9 {
10 // *** Open up the file
11 $this->image = $this->openImage($fileName);
12
13 // *** Get width and height
14 $this->width = imagesx($this->image);
15 $this->height = imagesy($this->image);
16 }
17}
18