Page 1 of 1

Required Feature: Alpha from .pgm

Posted: Sat Jul 25, 2020 3:47 pm
by Kratgh
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

Re: Required Feature: Alpha from .pgm

Posted: Thu Aug 13, 2020 1:59 pm
by xnview
so this can be in 'change depth' action, a way to load image file as alpha, right?