Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Album art
#2
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.

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;
}
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
Album art - by PihlT - 09-14-2019, 09:45 PM
RE: Album art - by Tim Curtis - 09-14-2019, 10:03 PM
RE: Album art - by PihlT - 09-14-2019, 10:23 PM
RE: Album art - by Tim Curtis - 09-14-2019, 10:26 PM

Forum Jump: