incubator-sanselan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Theisen (JIRA)" <>
Subject [jira] Updated: (SANSELAN-9) Loading Black and White PNGs produces darker images.
Date Sun, 03 Aug 2008 21:43:44 GMT


Kevin Theisen updated SANSELAN-9:

    Attachment: testImageNoAlpha.png

After further testing, this problem occurs on Windows as well. However, I did discover that
only images WITHOUT alpha experience this problem. I am uploading the original darkening demonstration
as well as two images I created, testImage.png and testImageNoAlpha.png. I release these images
(testImage.png and testImageNoAlpha.png) to the public. If you read and write testImage.png,
you will notice no change, which reading and writing testImageNoAlpha.png will experience
the mentioned darkening. Is there a way to specify that a created PNG should always have transparency

> Loading Black and White PNGs produces darker images.
> ----------------------------------------------------
>                 Key: SANSELAN-9
>                 URL:
>             Project: Sanselan
>          Issue Type: Bug
>    Affects Versions: 0.94-incubator
>         Environment: Mac OSX 10.5+, Java 1.5+, Sanselan 0.94
>            Reporter: Kevin Theisen
>         Attachments: PNGDarker.png, testImage.png, testImageNoAlpha.png
> When saving and loading pngs with Sanselan, black and white images get
> darker with each save and load. All images are held in
> memory as BufferedImages (ARGB). Have you ever seen this weird behavior
> before or how I may fix it?
> The affected images may be all PNGs, but I see this effect happening in images that contain
mostly black and white pixels. The image I use to demonstrate this problem is from a wikipedia
page of Linus Pauling:
> The image basically goes to black after saving and loading 3/4 times.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message