Example #1
0
 /**
  * Limitation on the GD library to GIF, PNG & JPEG
  * @see AbstractImage::retrieveType
  */
 protected function retrieveType($sPath)
 {
     parent::retrieveType($sPath);
     if (!in_array($this->type, array(IMAGETYPE_GIF, IMAGETYPE_PNG, IMAGETYPE_JPEG))) {
         throw new Exception('Image type given is not a valid one, only GIF, PNG and JPG are allowed');
     }
 }