- Using APC to store config values (when present)

- Enabling interlacing for pictures
This commit is contained in:
Michael Vogel 2013-08-09 18:28:50 +02:00
parent 6576aae938
commit d92a348cf0
2 changed files with 43 additions and 4 deletions

View 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();