http://bugs.winehq.org/show_bug.cgi?id=27499
Summary: Please add a WICIcoEncoder Product: Wine Version: 1.3.21 Platform: All OS/Version: Linux Status: NEW Severity: enhancement Priority: P2 Component: windowscodecs AssignedTo: wine-bugs@winehq.org ReportedBy: damjan.jov@gmail.com
Hi
Windows can sometimes use a BMP file in place of an ICO file, but winemenubuilder can only thumbnail ICO files (bug 26880). The cleanest way to fix this is to convert the BMP file to an ICO file, then push it through winemenubuilder's icon selection code as that ICO file. Unfortunately a WICIcoEncoder does not exist :-(.
Please can you add it?
Thank you.
http://bugs.winehq.org/show_bug.cgi?id=27499
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |26880
http://bugs.winehq.org/show_bug.cgi?id=27499
--- Comment #1 from Vincent Povirk madewokherd@gmail.com 2011-06-16 10:09:18 CDT --- What's stopping you from using WIC to decode other image formats the same way as ICO?
http://bugs.winehq.org/show_bug.cgi?id=27499
--- Comment #2 from Damjan Jovanovic damjan.jov@gmail.com 2011-06-17 02:09:50 CDT --- (In reply to comment #1)
What's stopping you from using WIC to decode other image formats the same way as ICO?
Winemenubuilder extracts the best quality icons for each icon size. WIC doesn't provide any information about colors for each icon index (it lies they're all 32 BPP ARGB on Wine and native), hence winemenubuilder has to parse the ICONDIR manually. This won't work for a BMP file, and it's done in at least 3 places. It seems like the cleanest solution to convert to ICO first and then work with that.
http://bugs.winehq.org/show_bug.cgi?id=27499
--- Comment #3 from Alexandre Julliard julliard@winehq.org 2011-06-17 03:12:35 CDT --- A bitmap doesn't have multiple sizes, so I don't see why you'd need that at all. Converting the bitmap to an icon just to convert it to another bitmap later seems like a very wasteful approach.
http://bugs.winehq.org/show_bug.cgi?id=27499
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX
--- Comment #4 from Vincent Povirk madewokherd@gmail.com 2011-10-10 11:07:41 CDT --- I'd have no objection to providing a private interface that you can use to ask for the original color depth, or any other information you need that's in the ICONDIRENTRY or bitmap header (but I'd need to know Alexandre is OK with this). And I'm sure there are other approaches you could use that don't need a private interface.
I'm certain you could make this work with less effort and less code than it would take to write an ico encoder. Resolving WONTFIX.
http://bugs.winehq.org/show_bug.cgi?id=27499
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Austin English austinenglish@gmail.com 2011-10-17 16:06:28 CDT --- Closing.
http://bugs.winehq.org/show_bug.cgi?id=27499
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Platform|All |Other
--- Comment #6 from Austin English austinenglish@gmail.com 2012-02-23 15:25:32 CST --- Removing deprecated 'All' Platform.