Save image to specific folder
in
Programming Questions
•
2 years ago
Hey,
I just want to save images from my current sketch to a specific folder outside my sketch folder.
It nearly works when using this code to save.
- void keyReleased() {
- imageCount ++;
- if (key == 's'') save("/Users/myName/Desktop/test-file/data/"+saveFile("imageName"+imageCount+".png"));
- }
When running this script it saves the image inside the "data" folder, but builds up several more subfolders. So when looking for the saved image I find it inside: "Users/myName/Desktop/test-file/data/
Users/myName/Desktop/test-file/data". Any ideas why this happens? I don't want all these subfolders rebuilded in the original data folder. I just want to save all images in the data folder addressed within the save-function.
Thanks for your help!!
2