if (!$this->rightClone) {
ZoomLink::generateImage($attributes, $this->compiler, 'layerlink', 'layer');
}
- return 'background-image:url(' . $this->getImageUrl() . ');background-size:' . $this->getBackgroundSize() . ';background-position:' . $this->getBackgroundPosition() . ';background-repeat:no-repeat;';
}
public function getImageUrl()
$both = Files::tempnam() . '.jpg';
Imagemagick::append(array($leftfile, $rightfile), $both, 'horizontal');
if (!file_exists($both)) {
- die('Error glueing ' . $leftfile . ' and ' . $rightfile);
+ throw new \Exception('Error glueing ' . $leftfile . ' and ' . $rightfile);
}
} else {
$both = $leftfile;