09-14-2019, 10:03 PM
(This post was last modified: 09-14-2019, 10:04 PM by Tim Curtis.
Edit Reason: etc
)
In Library Options You can control the resolution of the cover thumbs using the "Hi-res thumbnails" setting.
Covers are converted to Jpeg format using logic that attempts to maintain small file sizes and high image quality. The pixel ratio of the device is also considered. Generally is the source image is good quality the resulting thumbnail image will be same.
Covers are converted to Jpeg format using logic that attempts to maintain small file sizes and high image quality. The pixel ratio of the device is also considered. Generally is the source image is good quality the resulting thumbnail image will be same.
Code:
if ($hires_thm == 'Auto') {
if ($pixel_ratio == 2) {
$thm_w = 200;
$thm_q = 75;
}
elseif ($pixel_ratio >= 3) {
$thm_w = 400;
$thm_q = 50;
}
else {
$thm_w = 100;
$thm_q = 75;
}
}
else {
// manual
$thm_w = substr($hires_thm, 0, 3); // only the numeric part ex: 100px
$thm_q = 75;
}