views:

442

answers:

5

I'm looking for a free, preferably open source, http image processing server. I.e. I would send it a request like this:

http://myimageserver/rotate?url=http%3A%2F%2Fstackoverflow.com%2FContent%2FImg%2Fstackoverflow-logo-250.png&angle=90

and it would return that image rotated. Features wanted:

  • Server-side caching
  • Several operations/effects (like scaling, watermarking, etc). The more the merrier.
  • POST support to supply the image (instead of the server GETting it).
  • Different output formats (PNG, JPEG, etc).
  • Batch operations

It would be something like this, but free and less SOAPy. Is there anything like this or am I asking too much?

+1  A: 

You can use LibGD or ImageMagick to build a service like that fairly easily. They both have many language bindings.

Ferruccio
I know about those... I was looking for an app that I could just deploy and use.
Mauricio Scheffer
+1  A: 

While not an out of the box solution, check out ImageMagick. There is a perl interface for it, so combine that with some fairly simple cgi scripts, or mod_perl and it should do the trick.

Steve K
I know about ImageMagick... I was looking for an app that I could just deploy and use.
Mauricio Scheffer
+1  A: 

You could make this with Google App Engine -- they provide image processing routines and will host for free within some bounds.

Here are some examples of people doing things like this already

http://appgallery.appspot.com/results?q=image

Lou Franco
Nice! But I was looking for a complete solution... plus the google app engine doesn't support many image functions (yet!)
Mauricio Scheffer
+1  A: 

Apache::ImageMagick, you install that - and also Apache along with mod_perl. This is the standard setup, check docs, there are alternatives. This is probably as turn-key as it gets.

Sample conf:

<Location /img>
PerlFixupHandler Apache::ImageMagick
PerlSetVar AIMCacheDir /tmp/your/cache/directory
</Location>

Your requests could look like: http://domain/img/test.gif/Frame?color=red

More docs are here!

Till
Thanks! this does almost everything I need
Mauricio Scheffer
Welcome. =) It works pretty well, if I may add.
Till
A: 

I found this product, it seems to match my requirements

Mauricio Scheffer