if ($this->allowsAnimation) {
$animations = self::parseAnimations($this->image_rollover ?? 'none');
foreach ($animations as $animation) {
+ if (isset($animation['quality']) && property_exists($this, 'maxzoom_default')) {
+ $this->maxzoom_default = $animation['quality'];
+ }
if (isset($animation['blendmode'])) {
$this->blendmode = $animation['blendmode'];
unset($animation['blendmode']);
return $this->to ?: 'both';
}
- public function getDepth() {
- return parent::getDepth(); // TODO: Change the autogenerated stub
- }
-
public function getZoomAttributes() {
$layer = $this->_getLayer();
return [
public static function generateImage($attributes, $compiler, $cachedir, $save, $trim = false) {
$maxzoom = $attributes['maxzoom']; // Max zoom level might not always be set in the link editor
- $maxzoom = max(2, min($maxzoom, 20));
+ $maxzoom = max(0, min($maxzoom, 20));
if (!$maxzoom) {
$maxzoom = 2;
}