a backup of tiff transform. public function __construct($path,$minSize,$minWidth,$minHeight){ $this->path=$path; $this->minSize=$minSize; $this->minWidth=$minWidth; $this->minHeight=$minHeight; } public function setImage(SmallAdds $ad){ $this->today=date('Y-m-d'); $this->fullImagePath=$this->path.$ad->getSitePath().$this->today."/"; if (!is_dir($this->fullImagePath)){ if (!mkdir($this->fullImagePath,0775, true)) throw new \Exception('can not create folder'); } $this->ad=$ad; $this->name=uniqid(); } public function createPhoto(){ try{ $this->photo=new Photo(); $this->photo->setSmallAdds($this->ad); $imagePath = $this->fullImagePath; $pngName=$imagePath.$this->name.".png"; $tifName=$imagePath.$this-...