aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Photo/PhotoImagick.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-03-24 09:58:21 +0000
committerMario <mario@mariovavti.com>2024-03-24 09:58:21 +0000
commit0dc959d9fe40bddce5e99b8162bb0e770fc28ed9 (patch)
tree4ad4413b0c00d1a478111b031d9de46218f31a89 /Zotlabs/Photo/PhotoImagick.php
parentacc1834b0dc4804703610101fa95a3375649bc45 (diff)
downloadvolse-hubzilla-0dc959d9fe40bddce5e99b8162bb0e770fc28ed9.tar.gz
volse-hubzilla-0dc959d9fe40bddce5e99b8162bb0e770fc28ed9.tar.bz2
volse-hubzilla-0dc959d9fe40bddce5e99b8162bb0e770fc28ed9.zip
Deprecate *_config() functions in core.
Diffstat (limited to 'Zotlabs/Photo/PhotoImagick.php')
-rw-r--r--Zotlabs/Photo/PhotoImagick.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/Zotlabs/Photo/PhotoImagick.php b/Zotlabs/Photo/PhotoImagick.php
index 0a08d19e6..59f276480 100644
--- a/Zotlabs/Photo/PhotoImagick.php
+++ b/Zotlabs/Photo/PhotoImagick.php
@@ -2,6 +2,8 @@
namespace Zotlabs\Photo;
+use Zotlabs\Lib\Config;
+
/**
* @brief ImageMagick photo driver.
*/
@@ -57,7 +59,7 @@ class PhotoImagick extends PhotoDriver {
switch($this->getType()) {
case 'image/png':
- $quality = get_config('system', 'png_quality');
+ $quality = Config::Get('system', 'png_quality');
if((! $quality) || ($quality > 9))
$quality = PNG_QUALITY;
/*
@@ -73,14 +75,14 @@ class PhotoImagick extends PhotoDriver {
break;
case 'image/jpeg':
- $quality = get_config('system', 'jpeg_quality');
+ $quality = Config::Get('system', 'jpeg_quality');
if((! $quality) || ($quality > 100))
$quality = JPEG_QUALITY;
$this->image->setCompressionQuality($quality);
break;
case 'image/webp':
- $quality = get_config('system', 'webp_quality');
+ $quality = Config::Get('system', 'webp_quality');
if((! $quality) || ($quality > 100))
$quality = WEBP_QUALITY;
$this->image->setCompressionQuality($quality);