11-03-2018, 03:41 PM
Thank you for your donation!
Idea: Thumbnail Image Quality
|
11-03-2018, 04:15 PM
Post the UI CUSTOMIZATIONS section of System info and I'll have a look.
Menu, Configure, System Menu, System info -Tim
11-03-2018, 06:13 PM
(11-03-2018, 04:15 PM)Tim Curtis Wrote: Post the UI CUSTOMIZATIONS section of System info and I'll have a look. Code: Theme = Standard
11-03-2018, 07:47 PM
(This post was last modified: 11-04-2018, 01:25 AM by Tim Curtis.
Edit Reason: gr
)
Hi,
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') { -Tim
11-04-2018, 01:47 AM
(This post was last modified: 11-04-2018, 01:49 AM by christopherr.)
Thanks for the suggestion Tim. I have adjusted the width, but selecting re-gen album thumbnail cache from the Music Source Config page does not seem to change anything. Is this the correct way to regenerate the thumbnails?
- Edit: It is hard to distinguish between my reply and replied to comment. I'll stop clicking that button :/"
11-04-2018, 02:08 AM
Yes it is. It deletes all the thumbnail images in the cache directory then repopulates it. You may have to clear the Browser cache AND history on your client in order to see the updated images.
Some other things that might be helpful for debugging. 1. Verify that new thumbnails have been generated by looking at the date and file sizes for the jpg's. ls -l /var/local/www/imagesw/thmcache 2. Manually delete the thumbnail images and force the Album Cover panel to display default images, then re-gen the thumbnails a) sudo rm -f /var/local/www/imagesw/thmcache/* b) Refresh the Browser c) Open the Album Cover panel and scroll down until all the albums covers are populated with the default moOde cover d) Open the Sources screen and Re-Gen the thumbnail cache e) repeat b) and c) except that the covers displayed should be the newly generated album cover thumbnails -Tim
11-04-2018, 03:06 AM
(11-04-2018, 02:08 AM)Tim Curtis Wrote: Yes it is. It deletes all the thumbnail images in the cache directory then repopulates it. You may have to clear the Browser cache AND history on your client in order to see the updated images. It the re-gen button does not work for me. I had to sudo rm to remove the thumbnails. After re-generating with the same settings as before, the thumbnails look much better. Is there any logs you can look at to see why re-gen was unable to remove the thumbnails?
11-04-2018, 03:20 AM
Just use #1 in my previous post and check the date (time stamp) in the directory listing before and after running a re-gen. If the timestamps are newer after re-gen then it would confirm that the images were newly created.
If the new images don't appear in Browser then clear Browser cache and history. If you don't clear cache/history the images may remain in the Browser cache until the Browser expires them after some period of time...
11-04-2018, 04:31 PM
(11-04-2018, 03:20 AM)Tim Curtis Wrote: Just use #1 in my previous post and check the date (time stamp) in the directory listing before and after running a re-gen. If the timestamps are newer after re-gen then it would confirm that the images were newly created. The time stamps are not newer.
11-04-2018, 04:57 PM
(This post was last modified: 11-04-2018, 04:59 PM by Tim Curtis.
Edit Reason: eta
)
That symptom suggests thmcache.php might have crashed. Look for start and end messages in /var/log/moode.log. Their presence or absence would indicate whether there was a crash or not.
You would see something like below Code: 20181104 115559 worker: Job regenthmcache Post the modifications you made to thmcache,php and I'll have a look. |
« Next Oldest | Next Newest »
|