We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi,
I'm trying to save a PImage and I'm getting the famous "PImage.save() requires an absolute path...". The PImage.save() code reference doesn't work either.
size(100, 100);
PImage tower = loadImage("tower.jpg");
PImage newImage = createImage(100, 100, RGB);
newImage = tower.get();
newImage.save("outputImage.jpg");
Any idea? It should work. I'm working with the last version, and Mac OSX.
thanks!
Answers
I know it works with
newImage.save(dataPath("") + "/outputImage.jpg");
but there is a mistake in the PImage.save() web code reference. It seems the example is not working.
Best.
Thanks! But, I'm saying, the example
https://processing.org/reference/PImage_save_.html
doesn't work. Don't know if there is an "official" place to notify that kind of things.
https://GitHub.com/processing/processing-docs/issues
is this just the standard processing you're using or one of the modes? (p5.js, python...)
it might just be that you're using immediate mode. put all your code in a setup() method.
My own example is immediate mode and save() works flawlessly under it! [-(