Skip to content Skip to sidebar Skip to footer

How To Convert Png To Gif Using Javascript Or Other Client-side Tech?

I have a combination of client-side technologies creating PNG data in the browser. Is there a way to convert the PNG data to GIF for display in IE without sending the data to the s

Solution 1:

Is it possible? I suppose. JavaScript is Turing-complete, and I suppose one might be able to get around browser restrictions by outputting an <img src="data: ..." /> sort of format.

Is it feasible or a good idea? Hell no. Doing this would be like needing some concrete and developing a Moon rocket to harvest lunar dust to make it instead of buying some at Home Depot.

Solution 2:

Hmm. Looks like some options have come out over the last couple of years:

Solution 3:

It seems that you have a Flash object that outputs PNG. Can you add a JPEG or GIF output option to it?

As an alternative, it seems there is a JavaScript library that enables PNG support in IE. Not sure how well it works, though.

Post a Comment for "How To Convert Png To Gif Using Javascript Or Other Client-side Tech?"