source of listitem.Icon
#1
Hi, couple of parts to this question. 

In the skinning manual it says:

Skinning_Manual (wiki)
Quote:ListItem.Icon Shows the thumbnail (if it exists) of the currently selected item in a list or thumb control. If no thumbnail image exists, it will show the default icon.

On this page in the wiki (Artwork/Accessing_with_skins_and_JSON-RPC (wiki)), it says:
Quote:ListItem.Art(thumb) Thumb of the currently focused media item. This has some notable fallback behavior in the video library. It will be the artwork type named exactly "thumb" if it exists for the current item, but will fall back to "poster" then "banner" if not.

1. Does this mean that ListItem.Icon falls back like so?
xxx-thumb.jpg > xxx-poster.jpg > xxx-banner.jpg > default icon?

2. When will it auto generate a thumbnail based on an image from the video? In my files view, ListItem.Icon appears also to fall back to xxx-fanart.jpg if that's present before it auto generates an icon?

3. In files views, is there an easy way to see in the skin what lisitem.icon will fall back to? I need to move a label depending on if the artwork is a portrait or landscape. If I put ListItem.Icon in a label, it just shows the filename (including path) of the video file, but doesn't appear to change depending on whether a poster or a fanart or an auto generated thumbnail is shown?
Reply
#2
Here's another scenario

File view - Folder 1 contains fanart.jpg, folder 2 contains no artwork
The first shows the fanart.jpg while the second is blank (I've removed the fallback icons), but they both show DefaultFolder.png as the value for ListItem.Icon... so really what I was wondering in the post above is - is there a way for me to be able to figure out what listitem.Icon will show within my skin?
Reply
#3
With Matrix the fallback to banner/poster has been removed. 
ListItem.Icon =Default icon or ListItem.Art(thumb) or empty. 
So we have at least no strange aspect ratio stretchings anymore. But it still can be any size. Usually 1:1, 4:3 or 16:9.
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
#4
(2020-05-11, 19:42)sualfred Wrote: With Matrix the fallback to banner/poster has been removed. 
ListItem.Icon =Default icon or ListItem.Art(thumb) or empty. 
So we have at least no strange aspect ratio stretchings anymore. But it still can be any size. Usually 1:1, 4:3 or 16:9.

That's good to know, I'll keep this in mind, Thanks @sualfred for the info!
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
source of listitem.Icon00
This forum uses Lukasz Tkacz MyBB addons.