- March 24, 2007
- 12,073
- 7,459
- Home Country
- Germany
- Moderator
- #1
It's time to rework the thumbnail building inside MP2. I want to address following "issue" we have now:
I also like to add (again) support for "folder.jpg". My question is, if this provider should be always preferred over the shell thumbs?
My first idea about priorities would be:
2nd question in this topic: do we really need two thumbnails (small/large)? I've added them to be able to use smaller thumbs inside large lists to reduce resource load (texture allocation). This idea is still valid, if we change our defaults for "large" to i.e. 512x512 or even 1024x1024. Small uses currently shell thumbs of max 96x96.
- IThumbnailBuilder is placed inside MediaPortal.Common assembly and uses the Microsoft API Code Pack. This brings 2 additionals assemblies to be placed in every related program (even service monitor)
- Thumbnail building always encodes as JPG. This is fine generally, but PNG thumbs are loosing alpha channel in this case.
- Video thumbnails are created by VideoThumbnailer plugin, based on ffmpeg.
- No "folder.jpg" is supported
- IThumbnailBuilder remains inside MediaPortal.Common assembly, but only acts as "master" service
- Thumbnail creation will be moved into plugins
- Plugins will register themselves as "IThumbnailProvider"
- Plugins will expose a "priority", so user could change priority of plugin to override execution order. first successful extraction result will be used.
- Thumbnails will be rescaled in any case, if their size exceeds max limit (to be definied, setting?)
I also like to add (again) support for "folder.jpg". My question is, if this provider should be always preferred over the shell thumbs?
My first idea about priorities would be:
- folder.jpg
- Shell thumbnail
- VideoThumbnailer (ffmpeg)
2nd question in this topic: do we really need two thumbnails (small/large)? I've added them to be able to use smaller thumbs inside large lists to reduce resource load (texture allocation). This idea is still valid, if we change our defaults for "large" to i.e. 512x512 or even 1024x1024. Small uses currently shell thumbs of max 96x96.