PNG's transparant sections appearing green on imported PNGS.

Moderator: Kathy_9

REO_REbOrn
Posts: 3
Joined: Thu Apr 29, 2021 11:45 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Hero Vii
processor: i7 4790k
ram: 16gb
Video Card: 2070plus
Hard_Drive_Capacity: 8gb
Corel programs: Aftershot 3, Paintshop 2020

PNG's transparant sections appearing green on imported PNGS.

Post by REO_REbOrn »

Hello!


I am using Corel Paintshop pro 2020 edition and i'm importing PNG files which I purchased from Humble Bundle. They appear transparent in my file explorer but once they're in PS Pro they appear Green. I have opened the files in GIMP and a few other photo editors and the backgrounds stay transparent. Is there anything i can do to make it transparent in PS?
I have tried using the eraser tool (With edge finder) finding only the green to delete but it looks awful.
Any advice? Thanks :)

I have attached the image itself and a screenshot of it inside of PS.
You do not have the required permissions to view the files attached to this post.
LeviFiction
Advisor
Posts: 6472
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Re: PNG's transparant sections appearing green on imported PNGS.

Post by LeviFiction »

These are probably a special version of PNG transparency that PSP doesn't directly support. Essentially it's a paletted image with a full 256 color palette transparency. In PSP normally if a PNG (or GIF) uses single-color transparency, you'd go to Image -> Palette -> View Palette Transparency.

To see it's effects.

And that does technically work, but it only uses the first value to define the transparent color and it won't work as expected. I had a script a while back that addressed this that I made for a user named flagpole, but I'm having trouble finding it. Give me a couple hours I'm sure I'll be able to find it...or recreate it whichever comes first.
LeviFiction
Advisor
Posts: 6472
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Re: PNG's transparant sections appearing green on imported PNGS.

Post by LeviFiction »

Here is the script: https://drive.google.com/file/d/0B8FlFL ... sp=sharing

Unzip that into your Scripts-Trusted folder for PSP (Usually stored at C:\Users\<YOURUSERNAME>\Documents\Corel PaintShop Pro\2020\Scripts-Trusted )

Open your script toolbar if it isn't already open (View -> Toolbars -> Script)

Open the image you want to run the script on

Select "Restore8-bit-Transparency" from the script list

Run the script

Once it's done it should look correct.

You can then save this file as a regular PNG with full transparency, the image will be larger in size but it'll work perfectly in PSP.
REO_REbOrn
Posts: 3
Joined: Thu Apr 29, 2021 11:45 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Hero Vii
processor: i7 4790k
ram: 16gb
Video Card: 2070plus
Hard_Drive_Capacity: 8gb
Corel programs: Aftershot 3, Paintshop 2020

Re: PNG's transparant sections appearing green on imported PNGS.

Post by REO_REbOrn »

LeviFiction wrote: Tue May 04, 2021 6:27 pm Here is the script: https://drive.google.com/file/d/0B8FlFL ... sp=sharing

Unzip that into your Scripts-Trusted folder for PSP (Usually stored at C:\Users\<YOURUSERNAME>\Documents\Corel PaintShop Pro\2020\Scripts-Trusted )

Open your script toolbar if it isn't already open (View -> Toolbars -> Script)

Open the image you want to run the script on

Select "Restore8-bit-Transparency" from the script list

Run the script

Once it's done it should look correct.

You can then save this file as a regular PNG with full transparency, the image will be larger in size but it'll work perfectly in PSP.

Wow, thank you so much!! Worked a treat! Ty for your help! Owe you one :)
JoeB
Posts: 2750
Joined: Fri Mar 28, 2008 10:04 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: LENOVO 4524PE4 ThinkCentre M91p
processor: 3.10 gigahertz Intel Quad Core i5-2400
ram: 8 GB
Hard_Drive_Capacity: 4.6 TB
Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
Location: Canada

Re: PNG's transparant sections appearing green on imported PNGS.

Post by JoeB »

@LeviFiction,

Perhaps you might want to post that script in the Scripting sub-forum starting with a link back to this thread for people to find out what the purpose of the script is and the issue that might require use of the script. Just a thought.... :-)
Regards,

JoeB
Using PSP 2019 64bit
LeviFiction
Advisor
Posts: 6472
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Re: PNG's transparant sections appearing green on imported PNGS.

Post by LeviFiction »

@REO_REbOrn - One quick question if you're still around to see this. Are you permitted to share that file? Since you got it from Humble Bundle it was paid for but are you free to share it? If not I'd edit your original post to delete it from the forum. Wouldn't want you to be in trouble with the authors of the image.

@JoeB - I was going to but my contrary nature now wants me to never do so. xD
JoeB
Posts: 2750
Joined: Fri Mar 28, 2008 10:04 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: LENOVO 4524PE4 ThinkCentre M91p
processor: 3.10 gigahertz Intel Quad Core i5-2400
ram: 8 GB
Hard_Drive_Capacity: 4.6 TB
Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
Location: Canada

Re: PNG's transparant sections appearing green on imported PNGS.

Post by JoeB »

Ahhh, contrairians! One thing abut them I've found is that they are usually nicer and more cooperative in real life than they pretend to be. :-)
Regards,

JoeB
Using PSP 2019 64bit