Hi Victor. Over the weekend I began poking around with node-imagemagick. I 
still prefer the idea of using node-canvas to manipulate bitmaps, so I'll 
take a close look at jParser and your code. Thank you very much for 
pointing me in this direction and providing your example.

One question I had was if you intended to increment 
"this.current.header.imageCount" in your "images" structure? I'm a fan of 
explicit statement delimiters and not familiar with underscore so I'm 
probably confused, but it seemed an operator might be AWOL there.


On Monday, October 1, 2012 12:10:40 AM UTC-4, vicapow wrote:
>
>
> 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