meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation
http://camanjs.com
BSD 3-Clause "New" or "Revised" License
3.56k stars 406 forks source link

Support of BMP, TIF file types #104

Open jacekbarecki opened 11 years ago

jacekbarecki commented 11 years ago

Hi, I'm wondering whether CamanJS supports processing BMP and TIF images. When I try applying transformations to such files (with a script written for node.js), I get an error: "Image given has not completed loading". The same script handles JPG files without any errors.

I would be thankful for any comment on this. Maybe you have succesfully tested CamanJS with such file types?

bebraw commented 10 years ago

Hi,

Canvas (underlying tech) supports only JPG and PNG by default. In case you need something more exotic, try solutions like tiff.js and bmp.js. In short you'll need an external reader lib. After that you should end up with something you can use with Caman.