“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.
Maybe also option to:Something like this in CMD for ImageMagick:Code: Select all
for %A in (*.png) do convert %A %~nA.pgm -compose CopyOpacity -composite %A
- 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