]> git.mxchange.org Git - friendica.git/blobdiff - include/Photo.php
- Using APC to store config values (when present)
[friendica.git] / include / Photo.php
index 69b08f62919bc7fe81855238ff9fea847dff556c..f1c9128d36de7c30c0430f218f55bc816fe61b74 100644 (file)
@@ -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();