/** * Create a new instance of ImageImageResource * * @param $aImage SplFileInfo An image * * @throws FilesystemException when image resource is not valid */ public function __construct(\SplFileInfo $aImage) { parent::__construct($this->createImageResource($aImage)); $this->originalPath = $aImage; $this->outputPath = $aImage; }