mirror of
https://github.com/friendica/friendica
synced 2025-04-24 06:30:13 +00:00
The boot.php had been cleared of most functions
This commit is contained in:
parent
4989d1fa99
commit
63da4a75e9
37 changed files with 279 additions and 401 deletions
|
@ -134,9 +134,6 @@ class Image
|
|||
switch ($this->getType()) {
|
||||
case "image/png":
|
||||
$quality = DI::config()->get('system', 'png_quality');
|
||||
if ((! $quality) || ($quality > 9)) {
|
||||
$quality = PNG_QUALITY;
|
||||
}
|
||||
/*
|
||||
* From http://www.imagemagick.org/script/command-line-options.php#quality:
|
||||
*
|
||||
|
@ -150,9 +147,6 @@ class Image
|
|||
break;
|
||||
case "image/jpeg":
|
||||
$quality = DI::config()->get('system', 'jpeg_quality');
|
||||
if ((! $quality) || ($quality > 100)) {
|
||||
$quality = JPEG_QUALITY;
|
||||
}
|
||||
$this->image->setCompressionQuality($quality);
|
||||
}
|
||||
|
||||
|
@ -680,16 +674,10 @@ class Image
|
|||
switch ($this->getType()) {
|
||||
case "image/png":
|
||||
$quality = DI::config()->get('system', 'png_quality');
|
||||
if ((!$quality) || ($quality > 9)) {
|
||||
$quality = PNG_QUALITY;
|
||||
}
|
||||
imagepng($this->image, null, $quality);
|
||||
break;
|
||||
case "image/jpeg":
|
||||
$quality = DI::config()->get('system', 'jpeg_quality');
|
||||
if ((!$quality) || ($quality > 100)) {
|
||||
$quality = JPEG_QUALITY;
|
||||
}
|
||||
imagejpeg($this->image, null, $quality);
|
||||
}
|
||||
$string = ob_get_contents();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue