Topic awaiting preservation: Me again, looking for a way to extract .ico and convert to an web based image format (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Northumberland, England |
posted 04-01-2004 02:54
Hi peeps, |
Paranoid (IV) Inmate From: France |
posted 04-01-2004 03:20
smonkey: My question may be stupid, why do you want to convert the icons to another format ? The IMG tag supports to have a .ICO file in the SRC attribute. So if you can already find the icon(s) in any file it shouldn't be that hard to extract it in an external file. At worst you'll probably need to retrieve the file size of the .ICO by hand. To do so I suggest you to read the Icons in Win32 article by John Hornick. |
Paranoid (IV) Inmate From: Northumberland, England |
posted 04-01-2004 13:04
Hi Poi, |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 04-01-2004 13:13
I wouldn't bet on .ico files being displayed on a mac though. or on linux for that matter. |
Paranoid (IV) Inmate From: France |
posted 04-01-2004 13:48
Tyberius Prime: Yep, it's quite likely that the putting a .ICO in an IMG tag is not well supported on a Mac but due to the specific aspect of smonkey's project ( an intranet using Jscript, WSH... ) it shouldn't be a problem. Anyway that good to warn about eventual compatibility problems. code: typedef struct With that it should be 'easy' to read the datas of an .ICO file ( even if it's embedded in an .EXE or a .DLL ) and extract the icon you want to do whatever you want in the end. Either save it locally or send its datas to a server side script to convert it to a more common file format like PNG, or GIF. quote: You're not without knowing that .EXE and .DLL can have an .ICL ( ICon Library ). The iconLocation function returns the position where the ICOs starts in the .EXE or .DLL, but it's quite likely that the first icons are in lower resolution and probably even in 2 colors, or you retrieved the mask of the icon instead of the icon itself. Anyway, with the infos about the .ICO file format all those troubles could be solved. |
Paranoid (IV) Inmate From: Northumberland, England |
posted 04-01-2004 13:49
"I wouldn't bet on .ico files being displayed on a mac though. or on linux for that matter." |
Paranoid (IV) Inmate From: France |
posted 04-01-2004 14:06
|
Paranoid (IV) Inmate From: Northumberland, England |
posted 04-01-2004 15:47
Poi, not sure I can read an exe byte per byte - it was something I was hoping was possible with JScript or VBScript but wasn't sure on, should have explained that, d'oh. code: <iframe src="C:\Documents and Settings\All Users\Start Menu\Programs" width="400" height="400"></iframe>
|
Paranoid (IV) Inmate From: Northumberland, England |
posted 04-01-2004 21:23
Poi, |