Twitist Forums
Can java write code for a web page that can manipulate images? - Printable Version

+- Twitist Forums (http://twitist.com)
+-- Forum: Instagram (/forum-26.html)
+--- Forum: General Instagram (/forum-27.html)
+--- Thread: Can java write code for a web page that can manipulate images? (/thread-162064.html)



Can java write code for a web page that can manipulate images? - lastdayofjune - 06-06-2014 07:20 AM

What I mean is this. If I was designing a web page, or some social networking site like instagram, and I needed code that allowed me to upload an image and then manipulate that image, by adding filters etc, how is that code written? Is it with java? Or is there a way in which dll files can be used in web design?
The key here is that I am hoping to be able to not only upload images to the site, but to be able to manipulate the images(with filters etc) within the site. Can code be written for such a thing?


- Syberious - 06-06-2014 07:26 AM

php or javascript.... or more than likely both. but it depends on what kind of filters you want applied...... to broad a topic to tell you exactly how.


- Chris - 06-06-2014 07:31 AM

Javascript can turn an image into an array of pixels and vice-versa, so you can use it to apply filters. I don't think you can save the result though.
PHP can also manipulate images, I have written code that turns a photograph into a three color image (posterization).
In general though (and I assume Instagram does this), the uploaded image is saved, then php (or whatever they use) calls an executable that will process the file.