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
Thanks
Type: | Discussion |
---|---|
Status: | New |
hmm. I think I got it. was probably a cache issue.
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:
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
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
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.
Thanks for the replies.
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
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