|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Best way to create Windows .ico file for Emacs?I'm sure this is a FAQ, but I've spent several minutes searching
resources for the proper way to do this, but I just can't find it. I have Cygwin Emacs 23.0.92 installed, which includes the "emacs.icon" file, which I believe is an XPM file. I need to create a Windows ICO file. Searching the net, I find 8 zillion tools for image conversion, including many that provide the path that I need (xpm->ico), but what I'm wondering is if there's a tool already installed (or available) with Cygwin that can do this. I looked through the ImageMagick man page and didn't see it, which was the only obvious thing I knew to look at. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple |
|
|
Re: Best way to create Windows .ico file for Emacs?On 02/07/2009 12:20, KARR, DAVID (ATTCINW) wrote:
> I'm sure this is a FAQ, but I've spent several minutes searching > resources for the proper way to do this, but I just can't find it. > > I have Cygwin Emacs 23.0.92 installed, which includes the "emacs.icon" > file, which I believe is an XPM file. I need to create a Windows ICO > file. Searching the net, I find 8 zillion tools for image conversion, > including many that provide the path that I need (xpm->ico), but what > I'm wondering is if there's a tool already installed (or available) with > Cygwin that can do this. I looked through the ImageMagick man page and > didn't see it, which was the only obvious thing I knew to look at. convert xpm:emacs.icon ico:emacs.ico Yaakov -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple |
|
|
RE: Best way to create Windows .ico file for Emacs?> -----Original Message-----
ICO
> From: cygwin-owner@... [mailto:cygwin-owner@...] On > Behalf Of Yaakov (Cygwin/X) > Sent: Thursday, July 02, 2009 10:41 AM > To: cygwin@... > Subject: Re: Best way to create Windows .ico file for Emacs? > > On 02/07/2009 12:20, KARR, DAVID (ATTCINW) wrote: > > I'm sure this is a FAQ, but I've spent several minutes searching > > resources for the proper way to do this, but I just can't find it. > > > > I have Cygwin Emacs 23.0.92 installed, which includes the > "emacs.icon" > > file, which I believe is an XPM file. I need to create a Windows > > file. Searching the net, I find 8 zillion tools for image > conversion, > > including many that provide the path that I need (xpm->ico), but what > > I'm wondering is if there's a tool already installed (or available) > with > > Cygwin that can do this. I looked through the ImageMagick man page > and > > didn't see it, which was the only obvious thing I knew to look at. > > convert xpm:emacs.icon ico:emacs.ico Hmm, it says "convert: Improper image header `emacs.icon'. convert: missing an image filename `ico:emacs.ico'." Perhaps this isn't actually an XPM file? The header looks like this: /* Format_version=1, Width=64, Height=64, Depth=1, Valid_bits_per_item=16 */ 0xFFFF,0xFFFF,0xFFFF,0xFFFF,0x8000,0x0000,0x0000,0x0001, 0x8000,0x0000,0x007E,0x1C01,0x8000,0x0000,0x0006,0x1C01, -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple |
|
|
Re: Best way to create Windows .ico file for Emacs?On 02/07/2009 12:53, KARR, DAVID (ATTCINW) wrote:
> Perhaps this isn't actually an XPM file? The header looks like this: > > /* Format_version=1, Width=64, Height=64, Depth=1, > Valid_bits_per_item=16 > */ > 0xFFFF,0xFFFF,0xFFFF,0xFFFF,0x8000,0x0000,0x0000,0x0001, > 0x8000,0x0000,0x007E,0x1C01,0x8000,0x0000,0x0006,0x1C01, > No, that's definitely not an XPM. I would search the sources and see how this is used; I suspect this is #include'd somewhere. However, emacs includes emacs.png's and emacs.svg which are installed into the hicolor-icon-theme. Why not use those? You have two options: 1) Use convert(1) for a 1->1 conversion. 2) In Ports, png2ico(1) allows embedding multiple images (e.g. different sizes) into an ICO. Yaakov -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple |
|
|
Re: Best way to create Windows .ico file for Emacs?On 7/2/2009 1:20 PM, KARR, DAVID (ATTCINW) wrote:
> I'm sure this is a FAQ, but I've spent several minutes searching > resources for the proper way to do this, but I just can't find it. > > I have Cygwin Emacs 23.0.92 installed, which includes the "emacs.icon" > file, which I believe is an XPM file. I need to create a Windows ICO > file. Searching the net, I find 8 zillion tools for image conversion, > including many that provide the path that I need (xpm->ico), but what > I'm wondering is if there's a tool already installed (or available) with > Cygwin that can do this. I looked through the ImageMagick man page and > didn't see it, which was the only obvious thing I knew to look at. The emacs source contains several windows .ico files in the directory nt/icons. You can either download the source and locate them or you can find them in the CVS repository: http://cvs.savannah.gnu.org/viewvc/emacs/nt/icons/?root=emacs Ken -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple |
|
|
Re: Best way to create Windows .ico file for Emacs?On Thu, Jul 2, 2009 at 2:03 PM, Yaakov (Cygwin/X) wrote:
>> Perhaps this isn't actually an XPM file? The header looks like this: >> >> /* Format_version=1, Width=64, Height=64, Depth=1, >> Valid_bits_per_item=16 >> */ >> 0xFFFF,0xFFFF,0xFFFF,0xFFFF,0x8000,0x0000,0x0000,0x0001, >> 0x8000,0x0000,0x007E,0x1C01,0x8000,0x0000,0x0006,0x1C01, >> That's a Sun ICON file. It looks like ImageMagick doesn't support that, but PBMTools does: $ icontopbm emacs.icon | convert - emacs.ico -- Mark J. Reed <markjreed@...> -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple |
|
|
RE: Best way to create Windows .ico file for Emacs?> -----Original Message-----
ICO
> From: cygwin-owner@... [mailto:cygwin-owner@...] On > Behalf Of Ken Brown > Sent: Thursday, July 02, 2009 12:37 PM > To: cygwin@... > Subject: Re: Best way to create Windows .ico file for Emacs? > > On 7/2/2009 1:20 PM, KARR, DAVID (ATTCINW) wrote: > > I'm sure this is a FAQ, but I've spent several minutes searching > > resources for the proper way to do this, but I just can't find it. > > > > I have Cygwin Emacs 23.0.92 installed, which includes the > "emacs.icon" > > file, which I believe is an XPM file. I need to create a Windows > > file. Searching the net, I find 8 zillion tools for image > conversion, > > including many that provide the path that I need (xpm->ico), but what > > I'm wondering is if there's a tool already installed (or available) > with > > Cygwin that can do this. I looked through the ImageMagick man page > and > > didn't see it, which was the only obvious thing I knew to look at. > > The emacs source contains several windows .ico files in the directory > nt/icons. You can either download the source and locate them or you > can > find them in the CVS repository: > > http://cvs.savannah.gnu.org/viewvc/emacs/nt/icons/?root=emacs Got it. That's what I needed. Thanks. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple |
| Free embeddable forum powered by Nabble | Forum Help |