PNG load and save, than coulors are changed

Linux specific forum
infratec
Always Here
Always Here
Posts: 7662
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

PNG load and save, than coulors are changed

Post by infratec »

Hi,

can someone confrm this:

When I load a png file and save it under an other name, the R and B are swapped (it looks like this)

Code: Select all

UsePNGImageEncoder()
UsePNGImageDecoder()

LoadImage(0, "Test.png")
SaveImage(0, "Test_.png", #PB_ImagePlugin_PNG)
Tested with 4.51 on KUbuntu 11.10

Bernd
User avatar
idle
Always Here
Always Here
Posts: 6026
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: PNG load and save, than coulors are changed

Post by idle »

did you try specifying the depth for the savefile ?
Windows 11, Manjaro, Raspberry Pi OS
Image
infratec
Always Here
Always Here
Posts: 7662
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: PNG load and save, than coulors are changed

Post by infratec »

idle wrote:did you try specifying the depth for the savefile ?
Yes.
From 4 to 8 to 24 and 32.
But I'll try it now on my home PC.
Post Reply