jpeg compression

Permalink
Can't change thumbnails quality. I tried to add this:
<?php
return array(
   'misc'             => array(
      'default_jpeg_image_compression' => 100
   ),
);

In 2 different places:
/application/config/app.php
/application/config/concrete5.php
I also tried this:
define('AL_THUMBNAIL_JPEG_COMPRESSION', 100);

After each change I rescanned image from file manager. It's not cache, if I change thumbnail size, I can see it changed, but still have bad quality. Here's how I output image into template:
public function getSpeakerThumb($fID) {
        $fileObject = File::getByID($fID);
        $type = \Concrete\Core\File\Image\Thumbnail\Type\Type::getByHandle('speaker');
        if (is_object($fileObject)) {
            $src = $fileObject->getThumbnailURL($type->getBaseVersion());
            return $src;
        }
        return false;
    }

 
mnakalay replied on at Permalink Reply
mnakalay
Why don't you use the setting from tha dashboard?
You can find it at /dashboard/system/files/thumbnails/options
MaestroEspantoso replied on at Permalink Reply
It's not there in 5.7.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
look in dashboard/system/files/image_uploading
mnakalay replied on at Permalink Best Answer Reply
mnakalay
I just reread your original message and I think I see the problem. You said you tried to put that array in /application/config/concrete5.php

the file should be concrete.php not concrete5.php and it should be in application/config/generated_overrides you were missing the last folder.
MaestroEspantoso replied on at Permalink Reply
Thanks, it works. I googled concrete5.php here before:
https://www.concrete5.org/community/forums/usage/significant-image-q...
mnakalay replied on at Permalink Reply
mnakalay
Great! Happy to have helped :)