We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello, I created a sketch that receives a PImage and then pixelates it. I would like to have this on a server so that I can use this tool in a browser or in an iOS / Android app where they only submit the image to the server and receive the image in response... Is this possible with processing? Or should i replicate everything on Imagemagick ?
Thanks!
Answers
Barely know anything about servers! X_X
But IMHO, you're better off re-writing your sketch in JS using p5.js. >-)
For example, you can use p5.Element::drop() method in order to get an image.
Then display it pixelated! *-:) Here's an online drop() sample: :bz
@ashenfield -- is there user interaction? How complicated is the pixelation -- do you add other elements to the image?
If all you are doing is pixelating and you want to offer it as a web service, that is one line of code in imagemagick, and runs out-of-the-box on many cloud machines. Imagemagick will almost certainly be easier than Processing / p5 to cloud host as a service -- especially if you are already familiar with it.
http://www.imagemagick.org/Usage/transform/#pixelate
But if you are looking to do something interactive or fancy, or both, you will very quickly hit the limits of what imagemagick can do.
Thanks @GoToLoop, will check that out, maybe i can just do a web app and show it using WebViews on both Android and iOS...
@jeremydouglass, I thought of using Imagemagick but for that I'll need to setup something like apache + php + imagemagick, create the whole web app, etc, which will take a little bit of time. But that will most probably be the path I'll take.
There's also simpleHTTPServer. Dunno whether it's enough for the task though: 8-|
http://Diskordier.net/simpleHTTPServer/