More PNG probs.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: More PNG probs.
Aah: sounds good.
I will not be able to test that until Thursday night as currently away from my Mac Mini.
I will not be able to test that until Thursday night as currently away from my Mac Mini.
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: More PNG probs.
Hi Panos,
I tested
on preopenstack with the same result. Img of cd 1 is displayed correctly but img 1 of cd 2 is whole black
Kind regards
Jean-Marc
I tested
Code: Select all
set the paintcompression to "png"
Kind regards
Jean-Marc
https://alternatic.ch
Re: More PNG probs.
Panos,
there is no indication that any of these images in question have been modified by the user,
so I don't think that "the paintcompression" is of any importance here.
Richmond just imported the image(s) and they look fine in the IDE but not in the resulting runtime!?
Best
Klaus
there is no indication that any of these images in question have been modified by the user,
so I don't think that "the paintcompression" is of any importance here.
Richmond just imported the image(s) and they look fine in the IDE but not in the resulting runtime!?
Best
Klaus
-
- Livecode Staff Member
- Posts: 818
- Joined: Fri Feb 06, 2015 4:03 pm
Re: More PNG probs.
Hello all,
It seems you have a sample stack for testing? Could you please attach it here, and I'll have a quick look.
Just tested with an image attached in p2 ("houseGIMP.png") and seems to work fine for me in both the IDE and the standalone (MacOS Mojave - LC 9.6.2 rc1)
Are you in Big Sur?
Kind regards,
Panos
--
It seems you have a sample stack for testing? Could you please attach it here, and I'll have a quick look.
Just tested with an image attached in p2 ("houseGIMP.png") and seems to work fine for me in both the IDE and the standalone (MacOS Mojave - LC 9.6.2 rc1)
Are you in Big Sur?
Kind regards,
Panos
--
-
- VIP Livecode Opensource Backer
- Posts: 4003
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: More PNG probs.
there is a link to a dropbox file with the stack above
That is what I used for testing. I am on MacOS 10.14.6 Mojave and find that images
1,14,15,18,30
do work. The others are black in the standalone.
However in LC when setting the imageData of the image "PB2" of card 2 to the imageData of itself then it shows up in the standalone.
My suspicion is that there is a black alpha channel or somesuch, or again a color profile which somehow is not at work in the IDE.
It would be helpful if Richmond could indicate what the difference between the images that show in the standalone and those that don't is.
Maybe Richmond could make the "master" images available on his dropbox?
Kind regards
Bernd
That is what I used for testing. I am on MacOS 10.14.6 Mojave and find that images
1,14,15,18,30
do work. The others are black in the standalone.
However in LC when setting the imageData of the image "PB2" of card 2 to the imageData of itself then it shows up in the standalone.
My suspicion is that there is a black alpha channel or somesuch, or again a color profile which somehow is not at work in the IDE.
It would be helpful if Richmond could indicate what the difference between the images that show in the standalone and those that don't is.
Maybe Richmond could make the "master" images available on his dropbox?
Kind regards
Bernd
-
- VIP Livecode Opensource Backer
- Posts: 4003
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: More PNG probs.
that is the link to the dropbox filerichmond62 wrote: ↑Thu Mar 25, 2021 6:49 pmHere's the whole stack: https://www.dropbox.com/s/5j498gbvuuhyn ... e.zip?dl=0
I thought that was called a vasectomy.UTR = Unable To Reproduce
Kind regards
Bernd
-
- Livecode Staff Member
- Posts: 818
- Joined: Fri Feb 06, 2015 4:03 pm
Re: More PNG probs.
Ah thanks Bernd, I missed that link.
Cheers,
Panos
--
Interesting. Thanks for the workaround!However in LC when setting the imageData of the image "PB2" of card 2 to the imageData of itself then it shows up in the standalone.
Cheers,
Panos
--
-
- VIP Livecode Opensource Backer
- Posts: 4003
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: More PNG probs.
I copied the images to" Preview" on my Mac and it idicated as color profile "Gimp build-in" for ones that displayed and also for ones that displayed not.
I change the color profile to "general RGB" and pasted it into the stack and built a standalone. Now that image was showing up.
I stronly suspect that something with the color profile is in play.
I assume that the color profile is overwritten when setting the imageData of an image to the imageData of that image because the image seems to be rebuilt by that command. As additional lead: when setting imagedata to imageData in LC the image reports a color profile of sRGB IEC61966-2.1
I also looked at alphaData and maskData of the images and they where equal and appropriate for some working and non working images: they were plausible.
It does not explain however why some images display and some not. Only hints.
Kind regards
Bernd
I change the color profile to "general RGB" and pasted it into the stack and built a standalone. Now that image was showing up.
I stronly suspect that something with the color profile is in play.
I assume that the color profile is overwritten when setting the imageData of an image to the imageData of that image because the image seems to be rebuilt by that command. As additional lead: when setting imagedata to imageData in LC the image reports a color profile of sRGB IEC61966-2.1
I also looked at alphaData and maskData of the images and they where equal and appropriate for some working and non working images: they were plausible.
It does not explain however why some images display and some not. Only hints.
Kind regards
Bernd
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: More PNG probs.
'My wish is your command' . . . Err . . .Maybe Richmond could make the "master" images available on his dropbox?
https://www.dropbox.com/sh/430gd92p74nc ... nlx2a?dl=0
-
- VIP Livecode Opensource Backer
- Posts: 4003
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: More PNG probs.
Richmond,
I have the feeling we are going in circles. The mystery why some of the gimp built-in profiles work in a standalone and some not is not solved.
But assigning a different color profile to the images seems to cure all images for standalone. (see page 2 of this thread and our discussion).
Please also note that it is not only image 1 that is shown when I build a standalone with your "PB" stack but also the ones I listed. Adding to the mystery.
The color profile for all pngs seems to be the same Gimp built-in. I compared them in ColorSync.app.
Kind regards
Bernd
I have the feeling we are going in circles. The mystery why some of the gimp built-in profiles work in a standalone and some not is not solved.
But assigning a different color profile to the images seems to cure all images for standalone. (see page 2 of this thread and our discussion).
Please also note that it is not only image 1 that is shown when I build a standalone with your "PB" stack but also the ones I listed. Adding to the mystery.
The color profile for all pngs seems to be the same Gimp built-in. I compared them in ColorSync.app.
Kind regards
Bernd
-
- VIP Livecode Opensource Backer
- Posts: 4003
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: More PNG probs.
An easy way to change the color profile of an image on a Mac is to open the image in "Preview" You then have the option to change the color profile.
Maybe that is a workaround for your Summer-School.
Kind regards
Bernd
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: More PNG probs.
My Summer school stuff happens with Xubuntu 18.04 machines so no 'Preview'.
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: More PNG probs.
Hi All,
I noticed strange behavior using LC 9.6.3-rc-1 on Big Sur 11.4
As described above, some images (as control, not referenced files) display a black rectangle onto first cd (I have many images onto others cds that works fine).
When i compile a standalone, these images displays correctly.
Kind regards
Jean-Marc
I noticed strange behavior using LC 9.6.3-rc-1 on Big Sur 11.4
As described above, some images (as control, not referenced files) display a black rectangle onto first cd (I have many images onto others cds that works fine).
When i compile a standalone, these images displays correctly.
Kind regards
Jean-Marc
https://alternatic.ch
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: More PNG probs.
LC 9.6.3 rc 1 currently screwing up with PNG imports seemingly
randomly under MacOS 12 beta 3
randomly under MacOS 12 beta 3