Image Manipulation in Node.JS and Apigee

Not applicable

I'm working on a Node.JS App in Apigee and it’s coming along quite well. I am trying to do some image manipulation in the Node.JS App before handing the image back to the caller. I looked at the following StackOverflow post to determine which image manipulation package to go with: http://stackoverflow.com/questions/10692075/which-library-should-i-use-for-server-side-image-manipul.... I noticed that most of these are just a proxy to command line tool that runs the image manipulation and returns to Node.JS. I’m wondering if this is supported by the Apigee Platform? I did find a C++ module called LWIP (https://github.com/EyalAr/lwip ), but if I include that as a package and try to upload to Apigee, the apigeetool complains about 400 Bad Request. I’m not shocked because it wasn’t easy to get it to build with Visual Studio and run locally.

The frustrating part is the manipulation we want to do can be written in Java or C# in 10 to 20 lines. We are basically taking images and tinting them so they match the UI better.

Has anyone done something similar in Apigee and Node.JS?

Thanks!

0 1 386
1 REPLY 1

You can use a Java callout available on paid accounts to leverage Java in a proxy flow. You can bring in thirdparty jars as well.

http://apigee.com/docs/api-services/reference/java-callout-policy