From: Vincent Vanwaelscappel Date: Mon, 26 Jun 2023 15:54:48 +0000 (+0200) Subject: wait #6076 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=b5ec1d35cbd6cd61a8049c044defbfe5660582b0;p=fluidbook_tools.git wait #6076 @0.5 --- diff --git a/src/Links/LayerLink.php b/src/Links/LayerLink.php index cf9ad8f..7f203c5 100644 --- a/src/Links/LayerLink.php +++ b/src/Links/LayerLink.php @@ -27,7 +27,7 @@ class LayerLink extends ImageLink { } protected function _getExtension() { - if ($this->_getLayer() === 'text') { + if ($this->_getLayer() === 'text' || $this->_getLayer() === 'onlytext') { return 'svg'; } else { return 'jpg'; diff --git a/src/Links/ZoomLink.php b/src/Links/ZoomLink.php index 90a2880..d97ca9f 100644 --- a/src/Links/ZoomLink.php +++ b/src/Links/ZoomLink.php @@ -113,7 +113,7 @@ class ZoomLink extends NormalLink { $extractOptions['quality'] = $attributes['quality']; } - if (isset($attributes['layer']) && !in_array($attributes['layer'], ['image', 'text'])) { + if (isset($attributes['layer']) && !in_array($attributes['layer'], ['image', 'text', 'onlytext'])) { unset($attributes['layer']); } @@ -144,7 +144,7 @@ class ZoomLink extends NormalLink { if ($attributes['layer'] === 'image') { $extractOptions['texts'] = false; $extractOptions['background'] = true; - } else if ($attributes['layer'] === 'text') { + } else if ($attributes['layer'] === 'text' || $attributes['layer'] === 'onlytext') { $extractOptions['texts'] = true; $extractOptions['background'] = false; $ext = $extractOptions['format'] = 'svg';