# Png issue

**URL:** <https://forum.juce.com/t/png-issue/12818>\
**Category:** General JUCE discussion\
**Created:** [May 9, 2014, 6:06pm UTC](https://forum.juce.com/t/png-issue/12818 "2014-05-09T18:06:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![filipp](https://avatars.discourse-cdn.com/v4/letter/f/59ef9b/32.png) [@filipp](https://forum.juce.com/u/filipp)\
**Post date:** [May 9, 2014, 6:06pm UTC](https://forum.juce.com/t/png-issue/12818/1 "2014-05-09T18:06:10Z")

</div>

hello,

&nbsp;

I was playing with pixels in a png image based on colour and got something weird....

&nbsp;

I made an image in gimp with the color values:

r:255 g: 0 b: 136 alpha: 255

r:255 g: 0 b: **136** alpha: 17

I read it into an Image, with&nbsp;ImageFileFormat::loadFrom,

then I look for the color values in the Image with&nbsp;

Colour pixelClr = image.getPixelAt (x, y);

the resulting colours I&nbsp;get are:

r:255 g: 0 b: 136 alpha: 255

r:255 g: 0 b: **135&nbsp;** alpha: 17

&nbsp;

I was under the impression png was lossless? why is the blue value changing from what I have in Gimp?

Should I use a different image format?

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![filipp](https://avatars.discourse-cdn.com/v4/letter/f/59ef9b/32.png) [@filipp](https://forum.juce.com/u/filipp)\
**Post date:** [May 9, 2014, 9:53pm UTC](https://forum.juce.com/t/png-issue/12818/2 "2014-05-09T21:53:32Z")

</div>

To answer it myself, I think I can't use juce for what I want to do, juce does a pre-multiply on reading the png file,&nbsp;and then an unpremultiply on reading the pixel, and that's a lossy operation. :(

&nbsp;

guess I'll have to add another imagelibrary into the mix to keep a shadow copy with the un-multiplied alpha values.

&nbsp;
