PNG Transparency Issue when downloaded from Browser.

Corel Paint Shop Pro

Moderator: Kathy_9

Post Reply
_Cara_
Posts: 24
Joined: Sun Sep 25, 2011 6:13 pm
operating_system: Windows 7 Home Premium
System_Drive: C
32bit or 64bit: 64 Bit
processor: Intel[R] Core[TM] i5 2.4 GHZ
ram: 6 GB
Video Card: ATI Mobility Radeon HD 5470
sound_card: ATI High Def
Hard_Drive_Capacity: 500 GB

PNG Transparency Issue when downloaded from Browser.

Post by _Cara_ »

I have no clue what has changed or if I have inadvertently changed something via running scripts but I have a problem receiving or downloading png files. Once downloaded to my computer they always show a white background. This just started happening ... it was never an issue before. Does anyone have any idea of where I might look to see if I screwed up a setting somewhere? If i right click to copy and paste a png file into psp pro x4 itself it has a black background .. if i right click save as ... then save as the png file it has a white background. If a friend takes that same file and saves it as a psd file it opens perfectly with the transparent background.

Saving fresh work as png works fine ... so I am stumped as to what is wrong :(.

ty to anyone who can shed some light on this for me :)

(i use google chrome browser)
LindaSue
Posts: 515
Joined: Tue May 24, 2011 1:40 pm
operating_system: Windows XP Pro
System_Drive: C
32bit or 64bit: 32 Bit
motherboard: Gigabyte
processor: 2.71GHz AMD Athlon II X2 215 processor
ram: 3 GB
Video Card: ATI Radeon HD 4350
sound_card: Realtek AC97 Audio [onboard]
Hard_Drive_Capacity: 1320 GB
Monitor/Display Make & Model: Asus MX279 HDMI 27-inch
Corel programs: Paint Shop Pro X2, X4, X6

Re: PNG Transparency Issue when downloaded from Browser.

Post by LindaSue »

As far as I know, you can't just right-click and copy a transparent PNG image directly from the browser into PSP and retain the transparency. You need to save the file to your hard drive and open it from PSP. At least that's the case with Firefox and Internet Explorer on Windows XP.

Also, in PSP go to File > File Format Preferences > PNG tab. In that dialog box, check "Load and save transparency from/to alpha channel". If you find that it's already set to that option and they're still not transparent, you may need to check "Load and save transparency from/to layer transparency" instead. A few months ago I did something in PSP that caused the setting to need to be the opposite of what it should be and it affected all of my versions of PSP after PSP7. In PSP8, I now have to UNcheck "Load and save transparency from/to alpha channel" and in X2 I have to check "Load and save transparency from/to layer transparency" instead of alpha channel. One or the other setting should fix the problem for you. I freaked out when it happened to me because I use transparent PNG images all the time and need them to be transparent.
Using Paint Shop Pro versions 5, 6, 7, 8, 9, 12, 14, 16
_Cara_
Posts: 24
Joined: Sun Sep 25, 2011 6:13 pm
operating_system: Windows 7 Home Premium
System_Drive: C
32bit or 64bit: 64 Bit
processor: Intel[R] Core[TM] i5 2.4 GHZ
ram: 6 GB
Video Card: ATI Mobility Radeon HD 5470
sound_card: ATI High Def
Hard_Drive_Capacity: 500 GB

Re: PNG Transparency Issue when downloaded from Browser.

Post by _Cara_ »

in PSP go to File > File Format Preferences > PNG tab. In that dialog box, check "Load and save transparency from/to alpha channel"

ok did that ... do i need to close out psp or reboot computer for this to work? I immediately tried downloading a png file again and got a background :( ... it was set to "Load and save transparency from/to layer transparency" before that


and ty soo much for ur reply
_Cara_
Posts: 24
Joined: Sun Sep 25, 2011 6:13 pm
operating_system: Windows 7 Home Premium
System_Drive: C
32bit or 64bit: 64 Bit
processor: Intel[R] Core[TM] i5 2.4 GHZ
ram: 6 GB
Video Card: ATI Mobility Radeon HD 5470
sound_card: ATI High Def
Hard_Drive_Capacity: 500 GB

Re: PNG Transparency Issue when downloaded from Browser.

Post by _Cara_ »

have managed to narrow down (with help from a friend cause I wouldnt have a clue myself lol) that the issue is with png files saved with Mode > Indexed Color, anything saved in RGB mode is ok.


any thoughts on this direction?
LindaSue
Posts: 515
Joined: Tue May 24, 2011 1:40 pm
operating_system: Windows XP Pro
System_Drive: C
32bit or 64bit: 32 Bit
motherboard: Gigabyte
processor: 2.71GHz AMD Athlon II X2 215 processor
ram: 3 GB
Video Card: ATI Radeon HD 4350
sound_card: Realtek AC97 Audio [onboard]
Hard_Drive_Capacity: 1320 GB
Monitor/Display Make & Model: Asus MX279 HDMI 27-inch
Corel programs: Paint Shop Pro X2, X4, X6

Re: PNG Transparency Issue when downloaded from Browser.

Post by LindaSue »

I don't know anything about indexed color and you have no control over how other people have saved their PNG files anyway. I've never downloaded one that was supposed to be transparent yet wasn't when I opened it in PSP. Did you try closing and reopening PSP? I don't recall now if I had to do that or not to apply the new settings. Are you able to save transparent PNG images yourself from within PSP?
Using Paint Shop Pro versions 5, 6, 7, 8, 9, 12, 14, 16
LindaSue
Posts: 515
Joined: Tue May 24, 2011 1:40 pm
operating_system: Windows XP Pro
System_Drive: C
32bit or 64bit: 32 Bit
motherboard: Gigabyte
processor: 2.71GHz AMD Athlon II X2 215 processor
ram: 3 GB
Video Card: ATI Radeon HD 4350
sound_card: Realtek AC97 Audio [onboard]
Hard_Drive_Capacity: 1320 GB
Monitor/Display Make & Model: Asus MX279 HDMI 27-inch
Corel programs: Paint Shop Pro X2, X4, X6

Re: PNG Transparency Issue when downloaded from Browser.

Post by LindaSue »

I bet that "indexed color" is what PSP calls "palette-based". You definitely don't want to use that setting to save your PNGs. Here are the settings for saving transparent PNGs with PSP:

1. Go to File/Save As. Choose .PNG format.

2. Click the Options button in the Save As dialog box.

3. Don't change any settings in the little box that pops up. Click "Run Optimizer".

4. Use these settings:
Under the Colors tab:
Check - 16.7 Million Colors

Under the Transparency tab:
Check - Alpha channel transparency
Check - Existing image or layer transparency

Don't change any settings under the remaining tabs.

5. Click OK and save the file.
Using Paint Shop Pro versions 5, 6, 7, 8, 9, 12, 14, 16
_Cara_
Posts: 24
Joined: Sun Sep 25, 2011 6:13 pm
operating_system: Windows 7 Home Premium
System_Drive: C
32bit or 64bit: 64 Bit
processor: Intel[R] Core[TM] i5 2.4 GHZ
ram: 6 GB
Video Card: ATI Mobility Radeon HD 5470
sound_card: ATI High Def
Hard_Drive_Capacity: 500 GB

Re: PNG Transparency Issue when downloaded from Browser.

Post by _Cara_ »

thanks :), no I am not having any issues with saving my work as png all that seems normal as normal goes ... and is soo odd cause when i downloaded these certain pngs ... for me i had border .. when i passed it on to someone else they opened on their computer in like paint net and it was a proper png but opening it in their psp had a border ... is just strange ive never come across this before .. guess it goes as a mystery lol.

but these particular ones had been saved by their creator as Mode > Indexed Color, thats the only thing I know is diff about them.
creiglee
Posts: 1
Joined: Wed Aug 09, 2017 7:42 am
operating_system: Windows 8
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Xmothe 44
processor: Core i5
ram: 2 GB
Hard_Drive_Capacity: 1TB
Monitor/Display Make & Model: display1
Corel programs: 2.44

Re: PNG Transparency Issue when downloaded from Browser.

Post by creiglee »

PNGs create transparency in one of two ways. One of these methods employs the same approach used by GIFs, with a single color defined as transparent, and the other is to set an alpha channel . One of the advantages of PNG single-color transparency is that it doesn't remove a color from the available palette. However, the alpha channel is a much smoother method, as it is far better at blending colors, and allows you to select different levels of transparency in specific regions. The transparent areas of the PNG will blend and adjust naturally to whatever is behind the image when the background of the page isn't a solid white or black color.
LeviFiction
Advisor
Posts: 6831
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 Transparency Issue when downloaded from Browser.

Post by LeviFiction »

Run this script on those PNGs and re-save them. http://forum.corel.com/EN/viewtopic.php?f=104&t=61511

PaintShop Pro doesn't treat indexed transparency the same way it does alpha channel transparency. Indexed transparency is only a viewable effect, it's not actual transparency inside PSP. So you can see it as transparent (Image->Palette->View Transparency), but you can't use it like it's transparent. If that makes any sense.

Normally when you copy an image with indexed transparency color into another image as a new layer the transparency information is lost. Same if you try and convert the indexed color image into a true color image.

So what this script does is it lets you convert the indexed color image into a true color image while keeping the transparency in place. You can now resave the PNG to be a full color image with alpha transparency.
https://levifiction.wordpress.com/
User avatar
flagpole
Posts: 535
Joined: Wed Sep 14, 2011 10:12 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Gigabyte B450 AORUS ELITE DDR4 USB 3.1 RGB
processor: Ryzen 2600
ram: 16GB
Video Card: RTX 2060
sound_card: on board
Hard_Drive_Capacity: 6.5TB
Monitor/Display Make & Model: Iiyama 27"
Location: UK
Contact:

Re: PNG Transparency Issue when downloaded from Browser.

Post by flagpole »

LeviFiction wrote:Run this script on those PNGs and re-save them. http://forum.corel.com/EN/viewtopic.php?f=104&t=61511

PaintShop Pro doesn't treat indexed transparency the same way it does alpha channel transparency. Indexed transparency is only a viewable effect, it's not actual transparency inside PSP. So you can see it as transparent (Image->Palette->View Transparency), but you can't use it like it's transparent. If that makes any sense.

Normally when you copy an image with indexed transparency color into another image as a new layer the transparency information is lost. Same if you try and convert the indexed color image into a true color image.

So what this script does is it lets you convert the indexed color image into a true color image while keeping the transparency in place. You can now resave the PNG to be a full color image with alpha transparency.
Does that work on images with alpha transparency or partial transparency like this one:
39prisonersinhats2.png
39prisonersinhats2.png (11.14 KiB) Viewed 9247 times
Because i have a feeling i've tried it before and couldn't get it to work.

I also don't understand how it works because the partial transparency is not all one colour. :shock: :shock:
LeviFiction
Advisor
Posts: 6831
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 Transparency Issue when downloaded from Browser.

Post by LeviFiction »

No it won't because PSP doesn't support it. My script is only for indexed transparency. Although that png is 8-bit indexed color, the transparency is alpha transparency. So the end result is something PSP doesn't handle. What happens instead is PSP takes the first color in the palette and identifies it as "transparent" and it ignores the alpha channel altogether. You would need to convert it to 32-bit per pixel image for PSP to properly support it. And at that point you wouldn't need my script. xD
https://levifiction.wordpress.com/
User avatar
flagpole
Posts: 535
Joined: Wed Sep 14, 2011 10:12 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Gigabyte B450 AORUS ELITE DDR4 USB 3.1 RGB
processor: Ryzen 2600
ram: 16GB
Video Card: RTX 2060
sound_card: on board
Hard_Drive_Capacity: 6.5TB
Monitor/Display Make & Model: Iiyama 27"
Location: UK
Contact:

Re: PNG Transparency Issue when downloaded from Browser.

Post by flagpole »

LeviFiction wrote:No it won't because PSP doesn't support it. My script is only for indexed transparency. Although that png is 8-bit indexed color, the transparency is alpha transparency. So the end result is something PSP doesn't handle. What happens instead is PSP takes the first color in the palette and identifies it as "transparent" and it ignores the alpha channel altogether. You would need to convert it to 32-bit per pixel image for PSP to properly support it. And at that point you wouldn't need my script. xD
Ah ok. That makes sense.

Oh well. I wish it did support 8bit palette with partial transparency. :|
Post Reply