}
protected function _getExtension() {
- if ($this->_getLayer() === 'text') {
+ if ($this->_getLayer() === 'text' || $this->_getLayer() === 'onlytext') {
return 'svg';
} else {
return 'jpg';
$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']);
}
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';