Insert of *.png with transparent background does not work

Corel Paint Shop Pro

Moderator: Kathy_9

pstein
Posts: 110
Joined: Wed Dec 28, 2011 7:09 pm
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit
Corel programs: PSP X2
Location: Germany/Canada

Insert of *.png with transparent background does not work

Post by pstein »

I have a *.png "help" image file with transparent background.

Now I load another"main" *.jpg (or *.png) file and want to insert the mentioned first "help" *.png file into it.
However this does not work. Instead of the transparent background a white background is shown.

Questions:

1.) Currently I used a *.png "help" file with transparent background. But can a *.jpg file have a transparent background as well?

2.) Do I have to prepare/convert the "main" image to let inserted "help" images appear with transparent background?

3.) Should the insertion of *.png "help" images with transparent background work for *.jpg AND *.png "main" images or only one of them?

Peter
migf1
Posts: 510
Joined: Fri Apr 03, 2020 3:09 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit

Re: Insert of *.png with transparent background does not wor

Post by migf1 »

Hello Peter,

I didn't quite get the procedure you follow, but in general very few image formats can have transparency, PNG is one of them (JPG is not). Once you load an image into PSP (including .png images that do not have any transparent areas shown), try right-clicking on their layer in the layers palette, and in the menu that pops up select "Promote Background Layer". This should add an Alpha channel for those specific images (transparency) and you can then work with transparencies on them.

To keep the transparencies in the final result, save it as .png (or as .pspimage if you additionally want it to keep the layers structure).

PS. "Promote Background Layer" is also found in the Layers menu.
Last edited by migf1 on Wed Jul 08, 2020 7:20 am, edited 3 times in total.
Good Unofficial PaintShop Pro Tutorials: Creation CasselMake Shop ProHEC Image EditingLeviFiction PSP Basics
(plus my own Gimp & Stuff)
User avatar
hartpaul
Advisor
Posts: 2893
Joined: Tue Mar 20, 2012 3:38 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUSTeK P7P55D STRIX B240F GAMING
processor: IntelCore i7 7700 3.60 Ghz
ram: 8 Gb
Video Card: Nvidia GeForce GTX 1050
sound_card: Nvidia High Definition Audio
Hard_Drive_Capacity: 1000 Gb
Monitor/Display Make & Model: AOC
Corel programs: PSP8,X2 to X9,2018,2019,2020
Location: Australia

Re: Insert of *.png with transparent background does not wor

Post by hartpaul »

Apart from .pspimagefiles , png files are the main ones that show transparency.
So you cannot have a jpg showing transparency, but you can do a screenshot of a png with transparency and insert that into a jpg file , merge it and apparently show the transparency.
This is a layer showing transparency and a png when saved as such in PSP2020
01bearpng.png
01bearpng.png (9.25 KiB) Viewed 2504 times
This is a screenshot of two layers showing transparency
02screenshotof2pngs.png
To be able to plac the two separate layers together and keep transparency you must right click the top layer and do Merge > Merge Down
03mergedown.png
And this is the final image showing the two transparent layers merged as one and can be saved as a png.
04twopngmergeddown.png
04twopngmergeddown.png (11.35 KiB) Viewed 2504 times
Systems available Win7, Win 8.1,Win 10 Version 1607 Build 14393.2007 & version 20H2 Build 19042.867
pstein
Posts: 110
Joined: Wed Dec 28, 2011 7:09 pm
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit
Corel programs: PSP X2
Location: Germany/Canada

Re: Insert of *.png with transparent background does not wor

Post by pstein »

Hmm, my question is not answered yet.

Let me tell the problem with an example

Have a look at the attached snapshot.

It shows a png snapshot file of a map from Google Maps

As you can see there is a red pin set by Google Maps in the mid of the Lake. Since Google Maps does not support setting additional Pins by user I want to do that manually.

Therefore I created a stand-alone Pin with transparent background.

However when I paste this pin into the existing map the background is not transparent but white (see second pin)

So again the question:
How do I insert the second pin and let the map shine through the transparent background?

Thank you
Peter
Lake Garda2.png
migf1
Posts: 510
Joined: Fri Apr 03, 2020 3:09 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit

Re: Insert of *.png with transparent background does not wor

Post by migf1 »

pstein wrote: ...
Therefore I created a stand-alone Pin with transparent background.

However when I paste this pin into the existing map the background is not transparent but white (see second pin)
...
How have you created the stand-alone pin with transparent background? Could you share that image too? Also, how are you trying to bring the stand-alone pin into the main map image? (what is the procedure you are following?)

EDIT:
For this particular case and with PSP 2020, isolating a copy of the pin to a new layer is pretty easy:
https://gyazo.com/d04f83e52b3b224eacd8cd3855d2e372

1. Select the pin (the Smart Selection Brush does not exist in PSP X2, the version listed in your profile, but should be easy to trace it with another selection tool, say the Freehand selection setting its type to Point to Point, or Edge Seeker, or Smart Edge).

2. Switch to the Pick tool, click on the selection to promote a copy of it as a new layer, and move it around
Last edited by migf1 on Wed Jul 08, 2020 2:35 pm, edited 4 times in total.
Good Unofficial PaintShop Pro Tutorials: Creation CasselMake Shop ProHEC Image EditingLeviFiction PSP Basics
(plus my own Gimp & Stuff)
User avatar
hartpaul
Advisor
Posts: 2893
Joined: Tue Mar 20, 2012 3:38 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUSTeK P7P55D STRIX B240F GAMING
processor: IntelCore i7 7700 3.60 Ghz
ram: 8 Gb
Video Card: Nvidia GeForce GTX 1050
sound_card: Nvidia High Definition Audio
Hard_Drive_Capacity: 1000 Gb
Monitor/Display Make & Model: AOC
Corel programs: PSP8,X2 to X9,2018,2019,2020
Location: Australia

Re: Insert of *.png with transparent background does not wor

Post by hartpaul »

Pity you did not post the examples to start with , would have saved some effort.
Can you post a sample of your standalone pin as that is the main problem.
Systems available Win7, Win 8.1,Win 10 Version 1607 Build 14393.2007 & version 20H2 Build 19042.867
pstein
Posts: 110
Joined: Wed Dec 28, 2011 7:09 pm
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit
Corel programs: PSP X2
Location: Germany/Canada

Re: Insert of *.png with transparent background does not wor

Post by pstein »

Ok, here is the PNG file (hope it will not be auto-changed during upload)
pin transparent.png
pin transparent.png (1.17 KiB) Viewed 2449 times
pstein
Posts: 110
Joined: Wed Dec 28, 2011 7:09 pm
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit
Corel programs: PSP X2
Location: Germany/Canada

Re: Insert of *.png with transparent background does not wor

Post by pstein »

BTW: I am using PSP X2 (if this matters)
User avatar
Ravelli
Posts: 39
Joined: Thu Jan 07, 2016 10:53 pm
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: GigaByte GA-970A-UD3P Rev. 2.x
processor: AMD Phenom II X6 1090T
ram: 16 GB
Video Card: MSI GeForce GTX 1050 Ti GAMING X 4G
sound_card: ESI Maya44 eX
Hard_Drive_Capacity: 11 TB
Monitor/Display Make & Model: BenQ G2222HDL
Corel programs: PSP since 1993
Location: Altenbeken
Contact:

Re: Insert of *.png with transparent background does not wor

Post by Ravelli »

I get the described issue when I copy&paste a PNG from a different application into PSP (CTRL+C > CTRL+V, aka using the Clipboard). But it works correct, when I drag&drop the PNG at first into PSP, so it opens as separate file, who's one layer I copy&paste into the file where I want to have it.
User avatar
Ravelli
Posts: 39
Joined: Thu Jan 07, 2016 10:53 pm
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: GigaByte GA-970A-UD3P Rev. 2.x
processor: AMD Phenom II X6 1090T
ram: 16 GB
Video Card: MSI GeForce GTX 1050 Ti GAMING X 4G
sound_card: ESI Maya44 eX
Hard_Drive_Capacity: 11 TB
Monitor/Display Make & Model: BenQ G2222HDL
Corel programs: PSP since 1993
Location: Altenbeken
Contact:

Re: Insert of *.png with transparent background does not wor

Post by Ravelli »

your PNG has 256 colors only, probably a particular color is defined as alpha channel, which does not get detected initially, but hitting SHIFT+V should enable transparency on your file.

edit: unfortunately, my screenshot is in German only, but should be enough to show you the menu path: https://snipboard.io/dzxc5K.jpg
migf1
Posts: 510
Joined: Fri Apr 03, 2020 3:09 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit

Re: Insert of *.png with transparent background does not wor

Post by migf1 »

Well this is not our fault, it is Corel's outdated way of handling indexed and non-indexed images with transparency in PSP, even in version 2020.

In short Peter...
0. load the stand-alone pin in PSP
1. go to File -> Export -> PNG Optimizer
2. activate the Transparency tab
3. using the Dropper tool set the background color of the image in the "Areas that match this color" section
4. Hit OK to save the image again (specify a different name, just in case)

This new png image should be ok now. Use that one into your main map image.
peter.png
Btw, unless you have a specific reason for creating & saving the pin as a palette-indexed image, it is a better idea to create it as full 8-bit non-indexed image and save it with the transparency in the alpha channel.
Good Unofficial PaintShop Pro Tutorials: Creation CasselMake Shop ProHEC Image EditingLeviFiction PSP Basics
(plus my own Gimp & Stuff)
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: Insert of *.png with transparent background does not wor

Post by LeviFiction »

Completely unrelated, but Google's My Maps will let you put pins anywhere you want
https://levifiction.wordpress.com/
User avatar
Ken Berry
Site Admin
Posts: 22481
Joined: Fri Dec 10, 2004 9:36 pm
operating_system: Windows 11
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Gigabyte B550M DS3H AC
processor: AMD Ryzen 9 5900X
ram: 32 GB DDR4
Video Card: AMD RX 6600 XT
Hard_Drive_Capacity: 1 TB SSD + 2 TB HDD
Monitor/Display Make & Model: Kogan 32" 4K 3840 x 2160
Corel programs: VS2022; PSP2023; DRAW2021; Painter 2022
Location: Levin, New Zealand

Re: Insert of *.png with transparent background does not wor

Post by Ken Berry »

For those unaware of this specialized version of Google Maps, Google My Maps is described by Google as follows:
Google My Maps is your way to keep track of the places that matter to you. Easily make custom maps to remember your favorite places, explore new cities, or plan great vacations.
You can get it as an app in Play Store https://play.google.com/store/apps/deta ... .m4b&hl=en or set one up or access one you have made immediately at https://www.google.com/maps/d/

You can also get Help for it at https://support.google.com/mymaps/?hl=en#topic=3188329
Ken Berry
pstein
Posts: 110
Joined: Wed Dec 28, 2011 7:09 pm
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit
Corel programs: PSP X2
Location: Germany/Canada

Re: Insert of *.png with transparent background does not wor

Post by pstein »

Thank you for trying to help.
But I found another solution:

I have to setup foreground and background color in "Materials" subpane to white.
Then it works.

...very strange
migf1
Posts: 510
Joined: Fri Apr 03, 2020 3:09 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit

Re: Insert of *.png with transparent background does not wor

Post by migf1 »

I'm glad you solved it Peter (although I cannot reproduce the solution in PSP2020).

On a related note, PSP have issues with transparency in palette-indexed png images, which usually become apparent when trying to directly copy & paste such images from the web to PSP. If they are palette-indexed png's, then no matter if the transparency is indexed (single-color transparency) or in alpha-channel, PSP will show transparent areas as a solid color.

If the transparency is indexed (single color) we can view it by turning on: Image -> Palette -> View Palette Transparency. We can then re-save the image, as I suggested to Peter a few posts earlier. However, if the transparency is in the alpha channel, then we are pretty much screwed.. nothing we can do (other than elevating the image colors and trying to re-create the transparent areas from scratch).

Those issues exists since forever, and apparently Corel simply does not care. Every other program I have tried, handles all cases correctly.

Levi explains it in this topic: https://forum.corel.com/viewtopic.php?f=56&t=46047

Lastly, I have no idea if, how and when these options do somthing: http://prntscr.com/tem3yn
Good Unofficial PaintShop Pro Tutorials: Creation CasselMake Shop ProHEC Image EditingLeviFiction PSP Basics
(plus my own Gimp & Stuff)
Post Reply