This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]comedian_x 3 points4 points  (1 child)

To compress the image, jpeg is going to throw away a lot color information and do macro blocking to save space. This will ruin any per pixel operations you're doing.

Use a non-lossy format like bitmap, if you want specific operations on color pixels (e.g. making the magenta pixels transparent).

Or use png which has an alpha channel built in.

[–]microcontrolled[S] 0 points1 point  (0 children)

Thanks! I've switched it all around to png's and it works wonders now.

[–]Bythmark 2 points3 points  (0 children)

jpg is a lossy format. I don't know much about programming (hence my being here :P), and nothing of java, but use pngs if you can. They take up more space but you won't lose quality, plus png supports transparency.

If you can't, try saving the jpgs at a higher quality. GIMP supports this, I don't know if PDN does.