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 & HelpPrograms › Dark Image in Exported Sketch
Page Index Toggle Pages: 1
Dark Image in Exported Sketch (Read 404 times)
Dark Image in Exported Sketch
Aug 21st, 2006, 10:02pm
 
I'm just getting started with Processing, and made a little sketch to variably desaturate an image based on the mouse cursor position. The problem I'm running into is that the image appears much darker when I export it to an applet than when I run it as a sketch within the Processing IDE. The original image is the following scaled down to 512x340:

http://www.flickr.com/photos/hottslurry/206206888/

The exported applet can be found here:

http://www.extrafire.net/processing/desaturate/

with the associated code here:

http://www.extrafire.net/processing/desaturate/desaturate.pde

I'm opening the applet in Firefox 1.5.0.6 under Windows XP with JRE 1.5.0_08. I have the same problem when opening it under Internet Explorer (latest version, fully updated, 6.whatever not beta).

edit: I forgot to mention, I'm using Processing 0115 Beta.

I've compared my code to sketch examples packaged with Processing and don't see anything that would make it appear differently in an applet versus the sketch run.

Any ideas?
Re: Dark Image in Exported Sketch
Reply #1 - Aug 22nd, 2006, 6:54am
 
How intensely odd... it appears it only happens to that one picture, no matter how I modify or save it beforehand it appears significantly darker between running the sketch in the IDE and exporting to an applet. All other images I've tested this with do not have this problem. I'm still wondering what's going on; anyone care to venture a guess what's going on? The image being used is the following:

http://www.extrafire.net/processing/desaturate/chalkhand.jpg
Page Index Toggle Pages: 1