11-15-2019, 09:48 AM
(11-03-2018, 07:47 PM)Tim Curtis Wrote: Hi,Hi Tim
If you know some Linux SSH try modifying the code block below for pixel ratio == 2 in the file /var/www/command/thmcache.php, then regenerate the thumbnail cache. If you find a combination of width and quality that improves your covers then post the settings.
$thm_w is the width of the thumbnail image
$thm_q is the jpeg quality factor which ranges from 0 (worst quality, smaller file) to 100 (best quality, biggest file). The default is the default IJG quality value (about 75).
The approach used in thmcache.php for higher resolution thumbnails is to find an image size and quality setting that produces an acceptable image while minimizing file size. The need to minimize file size is present because populating the Album Cover panel is an I-O intensive operation. Smaller files = faster performance.
Code:if ($pixel_ratio == 2 && $hires_thm == 'Yes') {
$thm_w = 200;
$thm_q = 75;
}
elseif ($pixel_ratio >= 3 && $hires_thm == 'Yes') {
$thm_w = 400;
$thm_q = 50;
}
else {
$thm_w = 100;
$thm_q = 75;
}
-Tim
With Moode 6.3 I experienced same issue of bad quality album arts. I have found this thread and I have found a particularity which might help.
I have all square images as album arts. I have found that caches would always be generated as 100x100pxs. In this case I suspected that $pixel_ratio == 1 and it would go to the else branch. Not shure what pixel ratio it is because I did no echo it but after modifing the $thm_w from 100 to 200 the problem has been solved. So for shure that is the if/else branch that's going throug. If everything is right and there would be no other cases where it would create a bug, maybe this change should be made in an future update.
Thanks.