4

Is there any public service which I can use to convert any of the common image formats (gif, png, bmp, tga, etc) to a jpg? I'm looking for something I can use from within javascript, sending the image to whereever, then getting back a jpg I can use.

I am not looking for something manual, where I can go to http://foo.bar.com, manually upload the image, then manually save the returned jpg. I'm looking for something I can use as an actual web service remotely.

BrianFreud
  • 7,094
  • 6
  • 33
  • 50
  • If you already have access to the file in JS, there might be a way to do it locally, such as a JavaScript plugin/script. This would also remove the lengthy latency involved with the transfer. – DanRedux May 10 '12 at 00:29
  • It's not sensible for who host web service as you want, against bandwith – Uğur Özpınar May 11 '12 at 13:55
  • Assume you're in a "drag images into this box, then do something with those images, then eventually submit and they'll be uploaded" situation, or something along the same lines; for example gmail's attach file, if you wanted to have it convert all images to jpg. There, that latency is essentially invisible to the user, as it's all background. Compare that to what Dan suggests, where that is not a simple js lib function to do the conversion, nor is it really economical in terms of bytes of js loaded and executed user-end; that's not a low-cpu-use script for the user's computer to run. – BrianFreud May 11 '12 at 21:50

1 Answers1

1

You can take a look at api.online-convert.com - it's free but you have to put a back-link to their service somewhere on your website.

hope this helps!

alex
  • 4,922
  • 7
  • 37
  • 51
  • Just a followup, it's not a 100% perfect solution; they limit you to 30 conversions/day with a key, rather than ip-limiting or something like that which would be more useful for (in my case) a greasemonkey script that many people will use. – BrianFreud May 14 '12 at 16:59