User Tools

Site Tools


tools:graphicsmagick:create-blank-image

GraphicsMagick Create Blank Image

PMC Editing Wiki: Tools GraphicsMagick

2022-04-11T03:16:00Z

HOWTO create empty blank or single color image like black or transparent.

Create new black image from scratch:

gm convert -size 4096x4096 xc:black new-image.png
rem or yellow
gm convert -size 4096x4096 xc:yellow new-image.png

Open EXISTING image and black it out:

gm convert source.png -fill "rgb(0, 0, 0)" -opaque "rgb(255, 255, 255)" destination.png

This is for creating brand new image, 8bit 256 colors.

echo tipColInfoLayer ...
gm convert -size 32768x32768 -colors 256 -depth 8 -compress none xc:black tipColInfoLayer.png
tools/graphicsmagick/create-blank-image.txt · Last modified: 2022/04/11 03:19 by snakeman

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

All PMC web site download services are temporarily suspended until web site yearly fees have been recovered, want to download addons/mods? Then Support PMC.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.