Caching of images
Every image displayed (menu items, movie posters, backgrounds, photos, etc.) by SwissCenter is resized and cached to avoid resizing everytime an image is requested.
The same cache location is currently used for all types of image caching whether they are used on the navigation pages or slideshow photos or artist images on the 'Now Playing' screens. The filenames of cached images is formed of the SHA1 of filename and filedate followed by resized image size.
Slideshows of photos can be resized in different ways depending on various options such as 'Enlarge images' and 'Fit to screen'. The way in which the cached filename is formed means we cannot determine which options were used to resize the photo. Due to this we currently always resize photos during a slideshow. We need to include these options in the cached filename.
When using the enhanced 'Now Playing' screen there can be hundreds of artist images downloaded and saved to the cache. If the cache size is limited then this can quickly remove more important cached objects such as style images. When cleaning the cache we should be able to differentiate between cached style images and those less used for photos and artist images, maybe different folders in the cache?
The same cache location is currently used for all types of image caching whether they are used on the navigation pages or slideshow photos or artist images on the 'Now Playing' screens. The filenames of cached images is formed of the SHA1 of filename and filedate followed by resized image size.
Slideshows of photos can be resized in different ways depending on various options such as 'Enlarge images' and 'Fit to screen'. The way in which the cached filename is formed means we cannot determine which options were used to resize the photo. Due to this we currently always resize photos during a slideshow. We need to include these options in the cached filename.
When using the enhanced 'Now Playing' screen there can be hundreds of artist images downloaded and saved to the cache. If the cache size is limited then this can quickly remove more important cached objects such as style images. When cleaning the cache we should be able to differentiate between cached style images and those less used for photos and artist images, maybe different folders in the cache?
Leave a comment