JsonHaLong / win7shell

Automatically exported from code.google.com/p/win7shell
1 stars 0 forks source link

Support Larger Album Art Thumbnail #326

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I changed the size of my Win7 taskbar thumbnails; mainly hoping to make my 
album art display larger with your plug-in.
The thumbnails for most every other program are scaled up to the larger size 
(even the live video of 'Media Player Classic Home Cinema' and 'Windows Media 
Player').  win7shell still creates the same small sized thumbs (almost all my 
album art is 800px), but with wider empty borders to the left and right because 
windows is expecting a larger thumbnail image.

Original issue reported on code.google.com by emai...@gmail.com on 23 Sep 2010 at 7:27

GoogleCodeExporter commented 9 years ago
Issue 324 has been merged into this issue.

Original comment by att...@gmail.com on 7 Oct 2010 at 6:39

GoogleCodeExporter commented 9 years ago
Posting a screenshot, so you can see exactly what happens when the Aero-Peek 
thumbnail is enlarged.

As you can see, the width of the thumbnail box expands to the assigned 500px; 
but the height keeps the default pixel size.  This leaves my album art at a 
tiny 125px instead of the desired ~500px.

The program used to enlarge the taskbar thumbnails is also in the screenshot, 
so you can see exactly what was changed.

Original comment by emai...@gmail.com on 12 Feb 2011 at 11:45

Attachments:

GoogleCodeExporter commented 9 years ago
Here are MPC-HC's 'Media Player Classic - Home Cinema' Aero-Peek thumbnails for 
both a standard definition 4:3 AR video, and a high definition 2.40:1 AR video.

As you can see, the height of the thumbnails is automatically adjusted to fit 
the files AR, while the width is always the value I assigned (500 pixels).

Win7Shell (or Winamp, I don't know how Win7Shell accesses the album art) is 
assigning the album art a fixed size of 125 pixels.  Maybe this has to do with 
the variable height of the thumbnail box.  The screenshot in my previous 
comment shows that the Win7Shell thumbnail width is properly enlarged, but the 
height doesn't change and is used as the limiting factor.

Original comment by emai...@gmail.com on 13 Feb 2011 at 12:07

Attachments:

GoogleCodeExporter commented 9 years ago
Here's a screenshot for a window that has a narrow width.

The Peek box's width is always the assigned 500px, no matter what the 
dimensions of the thumbnail.  The height adjusts to allow for a different 
overall size.

Win7Shell doesn't adjust the pixel height though (maybe it isn't changing the 
width too).  I don't know exactly what's going wrong!

Original comment by emai...@gmail.com on 13 Feb 2011 at 12:31

Attachments:

GoogleCodeExporter commented 9 years ago
I understand the problem, but sadly I don't have time now to work on it... :(
Work + uni dissertation really leaves me with almost nothing right now.

I'll mark it as accepted.

Original comment by att...@gmail.com on 13 Feb 2011 at 6:58

GoogleCodeExporter commented 9 years ago
Best of luck on your dissertation :)

Thanks for putting this issue on your plate!

Original comment by emai...@gmail.com on 13 Feb 2011 at 8:43

GoogleCodeExporter commented 9 years ago
I can't figure this out... It doesn't allow me to set a larger thumbnail image 
than 200x120. Do you have any applications that draw a custom thumbnail, and 
it's bigger than 200x120? If it's only drawing one of its window's preview, 
that doesn't count.

Original comment by att...@gmail.com on 27 Mar 2011 at 3:23

GoogleCodeExporter commented 9 years ago
Oh well, disappointing.
Sounds like MS screwed this one up. I don't know of any other program that sets 
a custom (non-window-preview) thumbnail.

Here's the registry location for changing the thumbnail size.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband
MaxThumbSizePx is the relevant value. Though, I'm sure it won't be of any use.

Original comment by emai...@gmail.com on 27 Mar 2011 at 3:40

GoogleCodeExporter commented 9 years ago
I've already changed it too. But it still doesn't allow me to set a larger 
thumbnail, it only draws it as default for other windows.

I've posted the question here: 
http://social.msdn.microsoft.com/Forums/en-US/windowsuidevelopment/thread/2c2ac6
98-5854-47ab-aab1-bb14ececceec

.. and asked in many channels, but no one is able to help me. Poorly supported 
piece of shit WINAPI.

Original comment by att...@gmail.com on 27 Mar 2011 at 4:57

GoogleCodeExporter commented 9 years ago
Issue 325 has been merged into this issue.

Original comment by att...@gmail.com on 28 Mar 2011 at 8:21

GoogleCodeExporter commented 9 years ago
Maybe there's a workaround here, if you make the album art have it's own 
window-class within Winamp then direct Windows 7 to that window class for 
thumbnail creation, then Win7 should scale it just like it does for any other 
application's window ;)

Media Player Classic & Windows Media Play only show the video portion of the 
window in the thumbnail, I'm assuming that's because the video areas have their 
own window class.

To test this out, while using a classic skin, try pointing Win7 towards the 
window class "#32770" with parent window "Winamp Gen" for thumbnail creation 
(or just use "Winamp Gen"). Unfortunately, modern/bento skins don't have a 
custom window class for the album art.

If it works you can create your own child window within Winamp that contains 
absolutely nothing but the album art image, then direct Windows to that instead 
of drawing your own custom thumbnail.

Original comment by emai...@gmail.com on 31 Mar 2011 at 6:54

GoogleCodeExporter commented 9 years ago
Yes, I'm already working on this :) But thanks, this is the first actually good 
answer so far, that might explain and solve some things. The problem is I'm 
having some issues with the other parts of the plug-in. Everything works fine 
if I create a debug build, but the release build just clusterfucks. Can't track 
it down...

Original comment by att...@gmail.com on 31 Mar 2011 at 6:58

GoogleCodeExporter commented 9 years ago
Oh boy, glad I'm not a coder ;)
Then again if I was I'd be able to customize stuff myself :|

Hope your update to Win7Shell goes well, it's much better than the new Winamp's 
built-in taskbar thumbnail (that has several issues with docked skins - 
Bento/ClassicPro).

Original comment by emai...@gmail.com on 31 Mar 2011 at 7:36

GoogleCodeExporter commented 9 years ago
Well this didn't work so well.. I can't find a "normal" way to link a window to 
the thumbnail. Not even sure if it's possible. I'm still poking around. 

Original comment by att...@gmail.com on 31 Mar 2011 at 8:10

GoogleCodeExporter commented 9 years ago
It has to be possible in some way, how else do video players show their video 
content directly in the thumbnail?

Original comment by emai...@gmail.com on 31 Mar 2011 at 8:21

GoogleCodeExporter commented 9 years ago
I think those apps just set the clipping region of the window, so not all the 
window is drawn, but a part of it. (See 
[http://msdn.microsoft.com/en-us/library/dd391701%28v=VS.85%29.aspx 
SetThumbnailClip()].

This shit is annoying. No support at all. Crappy Microsoft.

Original comment by att...@gmail.com on 4 Apr 2011 at 7:54

GoogleCodeExporter commented 9 years ago
http://207.46.16.248/en-us/windows7trainingcourse_win7taskbarmanaged_topic2.aspx
Check out that tutorial, it was difficult as hell to find an actual working web 
page with that content.

The two sections below should help you out the most, but there's plenty of Win7 
taskbar instructions throughout that document.

Task 4—Using Live Thumbnail Previews
Task 5—Using Thumbnail Clips

Original comment by emai...@gmail.com on 4 Apr 2011 at 9:08

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The Offline Training Kit - http://go.microsoft.com/?linkid=9689701

Hands-on Lab Document (DOCX) - 
http://az12722.vo.msecnd.net/windows7trainingcourse1-0/Labs/Taskbar%20-%20Manage
d/Lab.docx

Original comment by emai...@gmail.com on 4 Apr 2011 at 9:37

GoogleCodeExporter commented 9 years ago
Here's the DOCX guide in 3 different coding languages.

Original comment by emai...@gmail.com on 4 Apr 2011 at 9:53

Attachments:

GoogleCodeExporter commented 9 years ago
I didn't find the actual sources or the demo app to try it, but this seems to 
only show the same thing that you can find everywhere. It either clips the 
window region to show what you want, or it sets the iconic image via the same 
function (which in my case fails when I set a larger image). 

This issue is starting to piss me off... I'll report it as a bug in Win7!

Original comment by att...@gmail.com on 5 Apr 2011 at 3:21

GoogleCodeExporter commented 9 years ago
So if an area was created within Winamp that contained a 500px album art 
thumbnail, using the Utilities.GetOffset method wouldn't be able to pare down 
to only the album art image inside Winamp's main window?  Does the skinning 
interface of Winamp prevent the Utilities.GetOffset method from working?

For anyone that just wants a full 512px thumbnail to display now playing text 
information, you could add an option that uses Application.Current.MainWindow 
to just create a thumbnail of the entire window frame.  Win7 should stretch 
that out to the entire usable thumbnail area, then draw the text from win7shell.

Original comment by emai...@gmail.com on 5 Apr 2011 at 9:59

GoogleCodeExporter commented 9 years ago
Well messing with the Winamp main window is probably not a good idea. 
Especially because it's skinned, so that would fuck up a lot of things.

Original comment by att...@gmail.com on 6 Apr 2011 at 5:03