home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
General Support
Thumbnail resizing : folder.jpg VS .tbn file
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="bleubleu" data-source="post: 133459" data-attributes="member: 46062"><p><strong>MediaPortal Version</strong>: 0.2.2</p><p><strong>MediaPortal Skin</strong>: PM3</p><p><strong>Windows Version</strong>: XP MCE</p><p><strong>CPU Type</strong>: P4 2.4</p><p><strong>HDD</strong>: </p><p><strong>Memory</strong>: </p><p><strong>Motherboard</strong>: </p><p><strong>Motherboard Chipset</strong>: </p><p><strong>Motherboard Bios</strong>: </p><p><strong>Video Card</strong>: </p><p><strong>Video Card Driver</strong>: </p><p><strong>Sound Card</strong>: </p><p><strong>Sound Card AC3</strong>: </p><p><strong>Sound Card Driver</strong>: </p><p><strong>1. TV Card</strong>: </p><p><strong>1. TV Card Type</strong>: </p><p><strong>1. TV Card Driver</strong>: </p><p><strong>2. TV Card</strong>: </p><p><strong>2. TV Card Type</strong>: </p><p><strong>2. TV Card Driver</strong>: </p><p><strong>3. TV Card</strong>: </p><p><strong>3. TV Card Type</strong>: </p><p><strong>3. TV Card Driver</strong>: </p><p><strong>4. TV Card</strong>: </p><p><strong>4. TV Card Type</strong>: </p><p><strong>4. TV Card Driver</strong>: </p><p><strong>MPEG2 Video Codec</strong>: </p><p><strong>MPEG2 Audio Codec</strong>: </p><p><strong>Satelite/CableTV Provider</strong>: </p><p><strong>HTPC Case</strong>: </p><p><strong>Cooling</strong>: </p><p><strong>Power Supply</strong>: </p><p><strong>Remote</strong>: </p><p><strong>TV</strong>: </p><p><strong>TV - HTPC Connection</strong>: </p><p></p><p>Hi!</p><p></p><p>I'm trying to organize my movies so they can easily be browsed in "share" view. I tried to approaches.</p><p></p><p>In the first, I put each movie in a folder and use a folder.jpg to get the cover art :</p><p></p><p style="margin-left: 20px">\Movies\Ice Age\folder.jpg</p> <p style="margin-left: 20px">\Movies\Ice Age\Ice Age.avi</p> <p style="margin-left: 20px">\Movies\Casino Royale\folder.jpg</p> <p style="margin-left: 20px">\Movies\Casino Royale\Casino Royale.avi</p><p></p><p>In the second approach, I put all my movies in the same folder. For each movie, I have a .tbn file :</p><p></p><p style="margin-left: 20px">\Movies\Ice Age.avi</p> <p style="margin-left: 20px">\Movies\Ice Age.tbn</p> <p style="margin-left: 20px">\Movies\Casino Royale.avi</p> <p style="margin-left: 20px">\Movies\Casino Royale.tbn</p><p></p><p>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.</p><p></p><p>Why is that ? Shouldnt thumbnails gets resized the same way ???</p><p></p><p>Mat</p><p></p><p><strong>EDIT</strong> : This only happens in <u>Filmstrip</u> and <u>List</u> view. The small and big icon views are OK.</p><p></p><p><strong>EDIT #2</strong> : 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 ?</p><p></p><p>[CODE] 502 pImage = new GUIImage(0, 0, ...);</p><p> 503 pImage.ParentControl = this;</p><p> 504 pImage.KeepAspectRatio = true;</p><p> 505 [B]pImage.ZoomFromTop = !pItem.IsFolder;[/B]</p><p> 506 pImage.FlipX = _flipX;</p><p> 507 pImage.FlipY = _flipY;</p><p> 508 pImage.DiffuseFileName = _diffuseFileName;</p><p> 509 pImage.SetAnimations(ThumbAnimations);</p><p> 510 pImage.AllocResources();[/CODE]</p></blockquote><p></p>
[QUOTE="bleubleu, post: 133459, member: 46062"] [b]MediaPortal Version[/b]: 0.2.2 [b]MediaPortal Skin[/b]: PM3 [b]Windows Version[/b]: XP MCE [b]CPU Type[/b]: P4 2.4 [b]HDD[/b]: [b]Memory[/b]: [b]Motherboard[/b]: [b]Motherboard Chipset[/b]: [b]Motherboard Bios[/b]: [b]Video Card[/b]: [b]Video Card Driver[/b]: [b]Sound Card[/b]: [b]Sound Card AC3[/b]: [b]Sound Card Driver[/b]: [b]1. TV Card[/b]: [b]1. TV Card Type[/b]: [b]1. TV Card Driver[/b]: [b]2. TV Card[/b]: [b]2. TV Card Type[/b]: [b]2. TV Card Driver[/b]: [b]3. TV Card[/b]: [b]3. TV Card Type[/b]: [b]3. TV Card Driver[/b]: [b]4. TV Card[/b]: [b]4. TV Card Type[/b]: [b]4. TV Card Driver[/b]: [b]MPEG2 Video Codec[/b]: [b]MPEG2 Audio Codec[/b]: [b]Satelite/CableTV Provider[/b]: [b]HTPC Case[/b]: [b]Cooling[/b]: [b]Power Supply[/b]: [b]Remote[/b]: [b]TV[/b]: [b]TV - HTPC Connection[/b]: 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 : [INDENT]\Movies\Ice Age\folder.jpg \Movies\Ice Age\Ice Age.avi \Movies\Casino Royale\folder.jpg \Movies\Casino Royale\Casino Royale.avi[/INDENT] In the second approach, I put all my movies in the same folder. For each movie, I have a .tbn file : [INDENT]\Movies\Ice Age.avi \Movies\Ice Age.tbn \Movies\Casino Royale.avi \Movies\Casino Royale.tbn[/INDENT] 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 [B]EDIT[/B] : This only happens in [U]Filmstrip[/U] and [U]List[/U] view. The small and big icon views are OK. [B]EDIT #2[/B] : 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();[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
Thumbnail resizing : folder.jpg VS .tbn file
Contact us
RSS
Top
Bottom