Thumbnail resizing : folder.jpg VS .tbn file (1 Viewer)

bleubleu

Portal Member
February 9, 2007
19
0
43
Home Country
Canada Canada
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           [B]pImage.ZoomFromTop = !pItem.IsFolder;[/B]
  506           pImage.FlipX = _flipX;
  507           pImage.FlipY = _flipY;
  508           pImage.DiffuseFileName = _diffuseFileName;
  509           pImage.SetAnimations(ThumbAnimations);
  510           pImage.AllocResources();
 

Users who are viewing this thread

Top Bottom