All we need is to attach a PGraphics to a PImage. Unfortunately, it appears the only supported way of doing this is the method createPGraphics() in the PApplet class. Creating a PApplet wants to open a window on the screen. So we select the renderer for PDF: size(1,1,PDF); This fails on Windows 64 with xception in thread "Animation Thread" java.lang.NoClassDefFoundError: com/lowagie/text/pdf/FontMapper
Answers
https://processing.org/reference/saveFrame_.html
https://processing.org/reference/PImage_save_.html
headless machine is a different issue, you should search these words from the main site.
The only way I can figure to go headless is to select PDF rendering, then do an offscreen render to png. This is not ideal.
https://www.google.fr/search?as_sitesearch=processing.org&as_q=headless+rendering
All we need is to attach a PGraphics to a PImage. Unfortunately, it appears the only supported way of doing this is the method createPGraphics() in the PApplet class. Creating a PApplet wants to open a window on the screen. So we select the renderer for PDF: size(1,1,PDF); This fails on Windows 64 with xception in thread "Animation Thread" java.lang.NoClassDefFoundError: com/lowagie/text/pdf/FontMapper