One colour short on png & gif web export

Here everybody can post his problems with PhotoLine
RobS
Mitglied
Beiträge: 47
Registriert: Di 11 Mai 2010 03:51

One colour short on png & gif web export

Beitrag von RobS »

Hi,

If using web export and specifying a specific number of colours for the palette, loading it from the image, one fewer colours ends up being present.

If I specify 64, 63 colours are included, 32 yields 31 and so on.

I noticed it as the actual colour being dropped was the overall fill colour (and brightest in the image), such that the resulting fill appeared significantly darker in the gif/png preview pane, than it did in either the original or jpeg preview panes.

It's not that the slots are there and simply not filled, the last 'slot' is not present.

In photoshop if specifying 32 colours then I get 32 colours (unless the source image actually contains fewer than the target number. I can also set a number of colours that isn't an integer power of 2, giving a bit finer control over colours and ultimate file size... Not critical, but would be nice to have similar finesse in PL.

Cheers

Rob
bkh
Beta Tester
Beiträge: 3687
Registriert: Do 26 Nov 2009 22:59

Re: One colour short on png & gif web export

Beitrag von bkh »

I recently stumbled across this one as well. The reason probably is that you have an image with an alpha (transparency) channel. In that case, PL has to reserve one color for the transparency information. (It does so, regardless if your image actually uses transparency or not.)

Cheers

Burkhard.
Martin Huber
Entwickler
Entwickler
Beiträge: 4298
Registriert: Di 19 Nov 2002 15:49

Re: One colour short on png & gif web export

Beitrag von Martin Huber »

bkh hat geschrieben:In that case, PL has to reserve one color for the transparency information. (It does so, regardless if your image actually uses transparency or not.)
Really? I just tried an RGB image without transparency and the color reduce options in the Web Export did show the full number of colors.
Do you have a sample image to reproduce the behaviour?

Martin
bkh
Beta Tester
Beiträge: 3687
Registriert: Do 26 Nov 2009 22:59

Re: One colour short on png & gif web export

Beitrag von bkh »

Martin Huber hat geschrieben: Really? I just tried an RGB image without transparency and the color reduce options in the Web Export did show the full number of colors.
Do you have a sample image to reproduce the behaviour?
Seems that you misunderstood me. If you don't have a transparency channel, you have the full number of colours. But as soon as there is a transparency channel, there is one colour less, even if your image doesn't use transparency, i. e., the transparency channel is at 100 % opacity everywhere. In my opiniion, this behaviour makes sense. I just wanted to add the remark to make it clear that one colour is reserved for transparency, even if it is not needed to render the particular image.

Cheers,

Burkhard.