Color Profile

Mac OSX specific forum
Wolfram
Enthusiast
Enthusiast
Posts: 610
Joined: Thu May 30, 2013 4:39 pm

Color Profile

Post by Wolfram »

Hi,

I have an png image with a color profile.
The ImageGadget ignores the color profile.
How can I show this image correct in my my program?
macOS Catalina 10.15.7
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3944
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Color Profile

Post by wilbert »

Does it make a difference if you don't use the PureBasic PNG decoder ?
It might be possible that the decoder that comes with OS X works better.
The LoadImageEx procedure in this thread http://www.purebasic.fr/english/viewtop ... 73#p392073 loads the image without the need for the PB decoder.
Windows (x64)
Raspberry Pi OS (Arm64)
Wolfram
Enthusiast
Enthusiast
Posts: 610
Joined: Thu May 30, 2013 4:39 pm

Re: Color Profile

Post by Wolfram »

No, it looks same.
I think there must be a command for using color management.

Is you example code right?
I have to replace

Code: Select all

CreateImage(Image, Width, Height, 32 | #PB_Image_Transparent)
with

Code: Select all

CreateImage(Image, Width, Height, 32 , #PB_Image_Transparent)
otherwise I get a compiler error.
macOS Catalina 10.15.7
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3944
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Color Profile

Post by wilbert »

Thanks for mentioning the compiler error.
I changed the code now. The other syntax was the right way for a previous version of PB.

Maybe you can post a link to the image you have a problem with.
That way it is possible to see what is going wrong.
Windows (x64)
Raspberry Pi OS (Arm64)
Post Reply