So, i ironically,  I recently needed a way to do this myself. node-canvas 
doesn't support it but there's this package called jParser which has a 
great example of reading in an ico 
file: https://github.com/vjeux/jParser/blob/master/sample/ico/ico.node.js

from there, i put together a little script that does basically what you 
want to do. you can find it here. 

https://github.com/vicapow/clickbin/blob/master/sandbox/icon-parser.js

I just found out this myself but ico files can actually contain more then 
one image icon. I haven't figured out how to deal with yet using the 
example from jParser.

On Wednesday, September 26, 2012 11:45:07 AM UTC-4, nop wrote:
>
> Hi. I'd like to use node-canvas to manipulate ico-format images. I 
> couldn't find any mention of supported formats in the readme, but from 
> my tests it seems either ico are not among them or there's an issue 
> with my environment. Would someone knowledgeable in the matter please 
> let me know if ico support should be there? If it isn't, it'd also be 
> nice to know if it might find its way into node-canvas sometime soon. 
> Thanks! 
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to