MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Get Support » General Support


General Support Post problems you have when using MediaPortal, or pre installation questions in here.

Reply
 
Thread Tools Display Modes
Old 2007-03-08, 18:55   #1 (permalink)
Portal Member
 
Join Date: Feb 2007
Age: 27
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default Thumbnail resizing : folder.jpg VS .tbn file

MediaPortal Version: 0.2.2
MediaPortal Skin: PM3
Windows Version: XP MCE
CPU Type: P4 2.4
HDD:
Memory:
Motherboard:
Motherboard Chipset:
Motherboard Bios:
Video Card:
Video Card Driver:
Sound Card:
Sound Card AC3:
Sound Card Driver:
1. TV Card:
1. TV Card Type:
1. TV Card Driver:
2. TV Card:
2. TV Card Type:
2. TV Card Driver:
3. TV Card:
3. TV Card Type:
3. TV Card Driver:
4. TV Card:
4. TV Card Type:
4. TV Card Driver:
MPEG2 Video Codec:
MPEG2 Audio Codec:
Satelite/CableTV Provider:
HTPC Case:
Cooling:
Power Supply:
Remote:
TV:
TV - HTPC Connection:

Hi!

I'm trying to organize my movies so they can easily be browsed in "share" view. I tried to approaches.

In the first, I put each movie in a folder and use a folder.jpg to get the cover art :
\Movies\Ice Age\folder.jpg
\Movies\Ice Age\Ice Age.avi
\Movies\Casino Royale\folder.jpg
\Movies\Casino Royale\Casino Royale.avi
In the second approach, I put all my movies in the same folder. For each movie, I have a .tbn file :
\Movies\Ice Age.avi
\Movies\Ice Age.tbn
\Movies\Casino Royale.avi
\Movies\Casino Royale.tbn
In both cases, the thumbnails gets resized differently. When I use a folder.jpg, the covers are resized properly and the complete cover art is visible in the thumbnail. When I use a .tbn file, the cover is resized AND cropped so I lose about 1/3 of the cover. I seems the .tbn resize procedure uses the shortest dimension (x or y) in order to compute the scale ratio. Please see attached screenshot.

Why is that ? Shouldnt thumbnails gets resized the same way ???

Mat

EDIT : This only happens in Filmstrip and List view. The small and big icon views are OK.

EDIT #2 : I dug in the code. In GUIFilmstripControl.cs, you can see that the thumbnail will be cropped if it is NOT a folder. So the problem is not related to the thumbnail format, but that fact that it is a folder or not. Why is that ?

Code:
  502           pImage = new GUIImage(0, 0, ...);
  503           pImage.ParentControl = this;
  504           pImage.KeepAspectRatio = true;
  505           pImage.ZoomFromTop = !pItem.IsFolder;
  506           pImage.FlipX = _flipX;
  507           pImage.FlipY = _flipY;
  508           pImage.DiffuseFileName = _diffuseFileName;
  509           pImage.SetAnimations(ThumbAnimations);
  510           pImage.AllocResources();
Attached Thumbnails
thumbnail-resizing-folder-jpg-vs-tbn-file-ss.jpg  

Last edited by bleubleu; 2007-03-08 at 21:00.
bleubleu is offline   Reply With Quote
Reply

Bookmarks

Tags
folderjpg, resizing, tbn, thumbnail

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Movie thumbs (folder.jpg) emphatic MediaPortal 1 Talk 3 2007-02-27 15:40
Folder.jpg in my videos juandionis General Support 6 2007-01-04 22:02
MYPictures and Folder.jpg krl69 General Support 7 2006-11-10 15:07
High CPU usage when trying to read tbn-file without any rights/access/owners chefkoch 0.2.0.0 Final and SVN Builds 4 2006-10-11 20:13
Disable folder.jpg thumbnail creation for picture folders? thorazine General Support 0 2006-01-12 20:02


All times are GMT +1. The time now is 05:24.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden