public function setImagePath($image_path = '') { $image = new YousticeImage(); $image->loadFromPath($image_path); $this->data['image'] = $image->getBase64String(); return $this; }
public function setShopLogoPath($image_path = '') { $image = new YousticeImage(); $image->loadFromPath($image_path); $this->shop_logo = $image->getBase64StringWithDataURI(); return $this; }