PDA

View Full Version : supported toDataURL image formats



youcan
02-23-2011, 10:54 AM
While I was playing around with webgl I've made an interesting detection.
The support for available image formats of the toDataURL() function has been increased.



Mac Mac Mac Mac PC PC PC PC PC
Chrome Safari Opera Firefox Firefox Opera Safari Chrome IE-9
9.0.597.98 5.0.3 11.01 4 beta 11 4 beta 11 11.01 5.0.3 9.0.597.98 9.0.7930
png + + + + + + + + +

jpeg + + + + - + + - +
var. comp. + + - - + - - +

jpeg2000 - + - - - - - - -
inc. trans. - + - - - - - - -

gif - + - - - - + - -
bmp - + - - - - - - -
tiff - + - - - - - - -
targa - + - - - - - - -



Especially Safari provides a wide range of formats on Mac.
The only format that is missing is googles "image/webp" and maybe "image/svg+xml".

youcan
02-25-2011, 09:29 AM
Mac Mac Mac Mac PC PC PC PC PC
Chrome Safari Opera Firefox Firefox Opera Safari Chrome IE-9
9.0.597 5.0.3 11.01 4 11 4 11 11.01 5.0.3 9.0.597 9.0.7930
png + + + + + + + + +
jpeg + + + + - + + - +
var. comp. + + - - + - - +

jpeg2000 - + - - - - - - -
inc. trans. - + - - - - - - -

gif + + - - - - + - -
bmp + + - - - - - - -
tiff - + - - - - - - -
targa - + - - - - - - -
webp + - - - - - - - -

+ = yes
- = no
= buggy

usertech
04-05-2011, 04:51 AM
Thats good to know.




Mac Mac Mac Mac PC PC PC PC PC
Chrome Safari Opera Firefox Firefox Opera Safari Chrome IE-9
9.0.597 5.0.3 11.01 4 11 4 11 11.01 5.0.3 9.0.597 9.0.7930
png + + + + + + + + +
jpeg + + + + - + + - +
var. comp. + + - - + - - +

jpeg2000 - + - - - - - - -
inc. trans. - + - - - - - - -

gif + + - - - - + - -
bmp + + - - - - - - -
tiff - + - - - - - - -
targa - + - - - - - - -
webp + - - - - - - - -

+ = yes
- = no
= buggy