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 & HelpSyntax Questions › save image, load image
Page Index Toggle Pages: 1
save image, load image (Read 861 times)
save image, load image
Jan 21st, 2006, 10:56pm
 
Is there an image format that Processing can both save and load? I am trying to save an image from Processing, to be opened by another computer running Processing. I was hoping the tga format would work, but Processing won't load compressed tga files...
Re: save image, load image
Reply #1 - Jan 22nd, 2006, 10:07pm
 
Jpeg and gif both work fine for load/save.

I know there was some code somewhere for PNG handling. I'm not sure if that got included into processing itself, or if you need to search for the code and insert it into your sketch.
Re: save image, load image
Reply #2 - Jan 23rd, 2006, 3:32pm
 
nah, jpeg and gif only work for loading images. support for writing them is on the way, but will just use the imageio classes from later versions of java, so they'll only work in some cases (yay! more exceptions!)
http://dev.processing.org/bugs/show_bug.cgi?id=165

this is just something that needs to be fixed.. when toxi contributed the compressed tga stuff we overlooked that the reading broke.
Page Index Toggle Pages: 1