mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 01:24:27 +02:00
- Using APC to store config values (when present)
- Enabling interlacing for pictures
This commit is contained in:
parent
6576aae938
commit
d92a348cf0
2 changed files with 43 additions and 4 deletions
|
@ -534,6 +534,9 @@ class Photo {
|
|||
|
||||
ob_start();
|
||||
|
||||
// Enable interlacing
|
||||
imageinterlace($this->image, true);
|
||||
|
||||
switch($this->getType()){
|
||||
case "image/png":
|
||||
$quality = get_config('system','png_quality');
|
||||
|
@ -676,6 +679,7 @@ function guess_image_type($filename, $fromcurl=false) {
|
|||
*/
|
||||
$image = new Imagick($filename);
|
||||
$type = $image->getImageMimeType();
|
||||
$image->setInterlaceScheme(Imagick::INTERLACE_PLANE);
|
||||
} else {
|
||||
$ext = pathinfo($filename, PATHINFO_EXTENSION);
|
||||
$types = Photo::supportedTypes();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue