Required Feature: Alpha from .pgm

XnConvert Multi Platform - Windows, MacOSX, Linux
Post Reply
Kratgh
Posts: 1
Joined: Sat Jul 25, 2020 3:21 pm

Required Feature: Alpha from .pgm

Post by Kratgh » Sat Jul 25, 2020 3:47 pm

Please, Add Action:
“copy Grayscale (.pgm) as alpha
//files must have the same name and be in the same location.
If pgm does not exist, this function will do nothing (skip)”

Or add it to „Add mask” action as:
“Use adjacent .pgm as mask” as optional.
Something like this in CMD for ImageMagick:

Code: Select all

for %A in (*.png) do convert %A %~nA.pgm -compose CopyOpacity -composite %A 
Maybe also option to:
- Skip or prioritize .pgm
(in case of full folder dump)

We can Extract Alpha channels and save them as Greyscale .png (.pgm) – it basically exists for it.
Crated .pgm can be the same name as the Main files.
Placing main (e.g .png) and alpha (.pgm) in one folder is easy.

This is related to texture work, transparency and preparing images for AI Upscaling (ESRGAN).


Thanks :D

Post Reply