Required Feature: Alpha from .pgm

XnConvert Multi Platform - Windows, MacOSX, Linux

Moderators: XnTriq, helmut, xnview

Kratgh
Posts: 1
Joined: Sat Jul 25, 2020 3:21 pm

Required Feature: Alpha from .pgm

Post 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
User avatar
xnview
Author of XnView
Posts: 44451
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Required Feature: Alpha from .pgm

Post by xnview »

so this can be in 'change depth' action, a way to load image file as alpha, right?
Pierre.