public function setImageRawBytes($image_data = '') { $image = new YousticeImage(); $image->loadFromRawBytes($image_data); $this->data['image'] = $image->getBase64String(); return $this; }
public function setShopLogoRawBytes($image_data = '') { $image = new YousticeImage(); $image->loadFromRawBytes($image_data); $this->shop_logo = $image->getBase64StringWithDataURI(); return $this; }