Thumbnail quality

Permalink Browser Info Environment
How can I improve the thumbnails quality? changing the JPEG Compression value (on helper > deluxe_image_gallery.php) doesn't do anything and the default value compresses too much.

Thanks

Type: Discussion
Status: New
GBNT
View Replies:
GBNT replied on at Permalink Reply
GBNT
hmm. I think I got it. was probably a cache issue.
jordanlev replied on at Permalink Reply
jordanlev
Glad you got it figured out. Note that there's an easier and "safer" way to set this compression level -- by adding this line to your config/site.php file:
define('AL_THUMBNAIL_JPEG_COMPRESSION', 100); //<--whole number between 1 and 100

100 is basically no compression I believe. See this comment for more details:
http://www.concrete5.org/community/forums/customizing_c5/getthumbna...

(and note that it only applies to JPEG's -- I don't know of a way to set the compression level for PNG's, not even sure if there is one).

-Jordan
GBNT replied on at Permalink Reply
GBNT
Yes, I did all this and it wasn't working, that's why I asked... I guess it only works re-uploading the images. Those already uploaded didn't change, the new ones were ok.

Thanks for the replies.
okapi replied on at Permalink Reply
okapi
It works as soon as you delete the previously generated copies of image files in the folder /files/cache/.
You can even completely delete that folder, C5 will generate a new one, but then ALL (!) files will be rendered again with the defined compression level. Actually i would not do this for a production site, because it would cause a delay for each newly called page to render the required sizes of the images for the first time.
In any case, you don't need to reupload the original images, because they are (uncompressed) still there in the "files" directory hierachy.
The definition of the compression level in config/site.php applies only to newly rendered copies, located in /files/cache/. Only if C5 can't find a specific image there, it generates a new one, and that with the current compression level.

Michael

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.