We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › create pictures for a website
Page Index Toggle Pages: 1
create pictures for a website? (Read 628 times)
create pictures for a website?
Nov 1st, 2007, 3:37pm
 
hello

first i have no experience whit processing (but whit flash and Webdesign general)

i have this idea:
-processing is able to save pictures (jpg,gif)
-then make in processing a project for create random little grafics and save this pics
-now embed the processing-app hidden to a website
-on each website visit it should draw a random pic in processing, save it to the server (maybe whit PHP-MYSQL)
-add this pics whit normal HTML to the page!

GOAL:
so every user will see the pic where was created from the previous user before

is this possilbe to do whit processing?

thanks for your infos
Re: create pictures for a website?
Reply #1 - Nov 18th, 2007, 6:48am
 
Hey,

Interesting concept, I'm pretty sure you can do it.

You would need to create a sketch the size of 1x1 in order to "hide" it from the user (or maybe put it in a hidden layer... don't know if it would work) and when the page loads, the sketch does everything without the user knowing.

To save the graphic, you would probably need to create a PGraphic to draw inside it and keep it in the memory. When you're done, export it and save it to the server.

Here are some links to codes that saves directly on the server.

http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Syntax;action=display;num=1138221586
http://www.processinghacks.com/hacks/savetoweb?s=jpg

Cheers
Re: create pictures for a website?
Reply #2 - Nov 18th, 2007, 1:51pm
 
ohhh steven thanks for your feedback... i already thought its not possible.
well i will start a little test-try, and let you guys know how it works!

thnx l8er
Page Index Toggle Pages: 1