Example #1
0
 /**
  * Class constructor.
  *
  * @param \Fuzz\ImageResizer\File $file
  *        Instance of the image to resize
  * @param bool                    $crop
  *        Flag to determine if we're cropping to resize or not
  */
 public function __construct(File $file, $crop = false)
 {
     $this->validateFile($file);
     $this->image_handler = new Imagick();
     $this->file = $file;
     $this->crop = $crop;
     $this->readFromBlob($this->file->getRaw());
 }