Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ImageMagic can be used to convert the white background of token raster image to transparent:

Code Block
convert test_big.png -transparent "#ffffff" transparent.png

Sizing

To resize the PNG file called test_big.png to 32x32 pixels, into a file called test_32x32.png:

Code Block
magick test_big.png -resize 32x32 test_32x32.png

Both commands (transparency and resizing) can be combined into one command:

Code Block
magick convert -transparent "#ffffff" test_big.png -resize 32x32 test_32x32.png

Juxtaposing the token image on the bottle image

Code Block
composite -geometry +250+500 token.png white_bottle.jpeg  -define png:color-type=6 juxt.png

Converting from SVG to PNG

...