Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/enoughtea/pmaconv
pmaconv is a simple command-line utility used to change images with non-premultiplied alpha into premultiplied alpha format, and vice versa.
https://github.com/enoughtea/pmaconv
Last synced: about 1 month ago
JSON representation
pmaconv is a simple command-line utility used to change images with non-premultiplied alpha into premultiplied alpha format, and vice versa.
- Host: GitHub
- URL: https://github.com/enoughtea/pmaconv
- Owner: EnoughTea
- License: other
- Created: 2015-03-15T15:32:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-18T12:58:09.000Z (about 9 years ago)
- Last Synced: 2023-08-05T09:55:36.443Z (over 1 year ago)
- Language: C#
- Size: 145 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangePremultipliedAlphaProcessor.cs
- License: LICENSE
Awesome Lists containing this project
README
# pmaconv
pmaconv is a simple command-line utility used to change images with non-premultiplied alpha into premultiplied alpha format, and vice versa.
### Usage examples
Convert some images to premultiplied alpha format and place them into the given directory:
pmaconv -c ToPma -o "C:\Directory to place converted files" "non-PMA.png" "maybe some other non-PMA.png"
Convert images in the some directory non-recursively to non-premultiplied alpha format and place them into current directory:
pmaconv -c FromPma -r false "E:\Directory with PMA images to convert"
### Options
-o, --outdir (Default: ) A directory where converted files should be placed.
-c, --convert (Default: ToPma) Color change direction, can be
"ToPma" (converts input non-PMA images to premultiplied alpha) and
"FromPma" (converts input PMA images to non-premultiplied alpha). Non case-sensitive.-p, --pngonly (Default: True) Changes only files with '.png' extension.
-r, --recursive (Default: True) When given directories, will look down the entire directory tree.
-v, --verbose (Default: False) Prints all messages to standard output.
--help Displays help screen.
### NuGet references
You may notice that NuGet packages are not in the repository, so do not forget to set up package restoration in Visual Studio:Tools menu → Options → Package Manager → General → "Allow NuGet to download missing packages during build" should be selected.
If you have a build server then it needs to be setup with an environment variable 'EnableNuGetPackageRestore' set to true.