convertingPNG - VolumeRC/AtlasConversionScripts GitHub Wiki

Converting a PNG image folder

The convertPNG.py script allows you to convert a set of PNG images into an atlas. It does not search recursively for the images, so the input folder must contain only the images to be converted on the first level.

Required packages

The script requires the following python packages:

Optionally, to also generate a gradient atlas:

Usage

The script takes two input arguments. The <InputFolder> with the images to be converted and the <OutputFileName> where the atlas will be stored. The --gradient option must be specified to compute the gradient atlas, otherwise it will not be computed.

python convertPNG.py <InputFolder> <OutputFileName> --gradient

The script accepts some additional optional arguments. To assist with the resize of the input images, before computing the atlas you can specify the desired size.

python convertPNG.py <InputFolder> <OutputFileName> --resize X Y

This is only needed to make calculations faster or for machines which do not have enough memory. For more usage information use the --help argument.