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 & HelpVideo Capture,  Movie Playback,  Vision Libraries › saveFrame / Uploading pictures to website
Page Index Toggle Pages: 1
saveFrame / Uploading pictures to website (Read 587 times)
saveFrame / Uploading pictures to website
Nov 8th, 2009, 11:40am
 
Hi - I have two questions.

I have an image that's being capture from video using this :

void keyPressed() {
 saveFrame("image.jpg");


First question is,  I want to save more than one picture by changing the name like image1.jpg , image2.jpg, image3.jpg...and so on
How can I do this?

Second question is,
I want to upload a picture to web every time I save the image, so people can see what I save through my website.

I heard that I can use PHP or Library.
I wonder which way is easier and are there webpages or code that can help me?



Thanks!!!!!!
Re: saveFrame / Uploading pictures to website
Reply #1 - Nov 8th, 2009, 11:45am
 
to save more than one image you can write image###.jpg but beware that it will overwrite the images when your sketch is restarted. if you dont want that to happen, create something like a timestamp and use it as file name.


I never tested it myself but i believe PhiLho had a great solution for the uploading to a webserver part :
http://processing.org/discourse/yabb2/?num=1212658813/15
Page Index Toggle Pages: 1