More PNG probs.

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: Images going black

Post by mwieder » Wed Nov 11, 2020 3:58 am

hello? a *beta* operating system?

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9250
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Images going black

Post by richmond62 » Wed Nov 11, 2020 10:10 am

mwieder wrote:
Wed Nov 11, 2020 3:58 am
hello? a *beta* operating system?
Indeed: and the end of a long line of beta operating systems running from macOS 10.15.0
to macOS 11.0.1, and, only with macOS 11.0.1 has this phenomenon with PNG images and LiveCode happened.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9250
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Images going black

Post by richmond62 » Wed Nov 11, 2020 10:35 am

So . . .

I ran up a stack containing some PNG images I downloaded from the internet alongside PNG images made in GIMP.
-
Screenshot 2020-11-11 at 11.30.22.png
-
In the stack, as you can see, both images are rendered properly.
-
Screenshot 2020-11-11 at 11.32.29.png
-
In a Macintosh standalone the image from the internet looks fine, but the GIMP one does not.

This is odd as I never, in about 15 years, had this type of problem with a GIMP png image before.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9250
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Images going black

Post by richmond62 » Mon Nov 16, 2020 8:53 pm

Screenshot 2020-11-16 at 21.50.56.jpg
-
In a standalone the PNG processed in GIMP fails, while the PNG prcessed in Photoshop 21 trial version succeeds.

Currently NOT running beta software: this is macOS 11.0.1 final.
Last edited by richmond62 on Fri May 07, 2021 4:19 pm, edited 1 time in total.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7210
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Images going black

Post by jacque » Tue Nov 17, 2020 9:31 pm

That looks like all LC sees is the alpha channel.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9250
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Images going black

Post by richmond62 » Sat Nov 21, 2020 3:29 pm

Oddly enough Seashore ( a GIMP derivative) produces PNG images that behave themselves:
-
PING_PROB.jpg
-
https://github.com/robaho/seashore

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3975
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Images going black

Post by bn » Sat Nov 21, 2020 6:33 pm

Richmond,

could you have a look at the color profiles of the different images? If you select an image on a Mac and then do command + i you get the info. There should be a section that indicates which color profiles those images use. If those are different from the Gimp vs Photoshop/Seashore then you could change the color profile of the Gimp png to a profile of the other ones. Use Color Sync.app for that.
This is just a hunch and might not be the problem but it is worth a try.

Kind regards
Bernd

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3975
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Images going black

Post by bn » Sat Nov 21, 2020 9:51 pm

You could also try to upload a zipped Gimp png that is not working and a zipped Seashor png that is working. I could have a look at them.

Kind regards
Bernd

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9250
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Images going black

Post by richmond62 » Sat Nov 21, 2020 10:06 pm

Here we go then . . .
-
Krita

Photoshop

Gimp
Attachments
house_Krita.png.zip
(24.34 KiB) Downloaded 141 times
houseGIMP.png.zip
(25.27 KiB) Downloaded 185 times
hoosePHSH.png.zip
(67.47 KiB) Downloaded 166 times
Last edited by richmond62 on Sat Nov 21, 2020 10:08 pm, edited 1 time in total.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9250
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Images going black

Post by richmond62 » Sat Nov 21, 2020 10:08 pm

More than 3 options:

This is the Seashore one.
Attachments
houseSeashore.zip
(23.9 KiB) Downloaded 167 times

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3975
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Images going black

Post by bn » Sat Nov 21, 2020 11:17 pm

the profiles are

houseGIMP.png
GIMP built-in sRGB


houseSeashore.png
sRGB IEC61966-2.1

hoosePHSH.png
RGB


house_Krita.png
sRGB built-in


I attach the houseGimp with color profile sRGB IEC61966-2.1

Could you try this one?
houseGIMP 2 other profile.png.zip
(24.15 KiB) Downloaded 200 times
Kind regards
Bernd

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9250
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Images going black

Post by richmond62 » Sun Nov 22, 2020 6:55 pm

Whacko!

Thank you Bernd for your trouble.
-
Screenshot 2020-11-22 at 19.52.48.png
-
Now there are 2 considerations to point out re GIMP png images with their original profiles:

1. They appear perfectly properly in stacks.

2. On the first card of a macOS standalone they appear perfectly properly.

3. It is only on second and subsequent cards in standalones that these images seem to appear as their alpha-channel mask.

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3975
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Images going black

Post by bn » Sun Nov 22, 2020 7:08 pm

Glad it worked.

Maybe you can change the default color profile in GIMP?

Kind regards
Bernd

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9250
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Images going black

Post by richmond62 » Sun Nov 22, 2020 7:15 pm

That does seem a good idea.

But it will take me some time to located .icm files to do that.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9250
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Images going black

Post by richmond62 » Sun Nov 22, 2020 7:46 pm

Screenshot 2020-11-22 at 20.44.30.png
-
Hmm . . .

Frankly, I shall stick to Seashore.
Attachments
hooseJRM.png.zip
(38.83 KiB) Downloaded 184 times
PHL 274E5 Calibrated.icc.zip
My display profile
(2.73 KiB) Downloaded 152 times

Post Reply

Return to “Talking LiveCode”