My bad- IE's canvas handles ico perfectly well. I am quick to judge IE
and careless when it comes to configuring my own server's MIME
types. ;)

For the record, Safari's canvas (desktop and iOS) supports ico, too.
toDataURL() is entirely broken on Android 2.2 (the only Android
version I can test at the moment), but I suspect later versions are in
line with Chrome/WebKit. Opera's canvas works with ico on the versions/
platforms I tested. So if it's not part of the spec, whatever that is,
ico seems to be a de facto standard.

On Sep 26, 1:41 pm, nop <[email protected]> wrote:
> Hi Ryan. Thanks for the tip. I'd been playing with canvas in Firefox
> and Chrome to manipulate ico images so it hadn't crossed my mind that
> the format wasn't universally supported. I'm sure you're right,
> though; a quick test reveals Internet Explorer doesn't like the
> format, either, and I can't find mention of the formats that should be
> supported in the W3C spec. It may be above my skill level but I'll
> take a look at an ico reader, as you suggested.
>
> On Sep 26, 12:39 pm, Ryan Schmidt <[email protected]> wrote:
>
>
>
>
>
>
>
> > On Sep 26, 2012, at 10:44, nop <[email protected]> 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.
>
> > I haven't ever heard of canvas supporting loading ico format images, so 
> > it's not surprising that node-canvas doesn't support it either.
>
> > So your goal should be to look for or write an ico image reader for the 
> > canvas. Then it should work with node-canvas as well.

-- 
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