From 3bfcef2ce72fe2f13625b431825a93a557149053 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Mon, 1 Oct 2018 17:04:57 +0200 Subject: [PATCH] Add comment to script --- convert_png.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/convert_png.py b/convert_png.py index a52963b..e1848a4 100644 --- a/convert_png.py +++ b/convert_png.py @@ -1,4 +1,15 @@ -# Convert png image to 256 palette image for Pokitto. +# Convert png image to 256 palette image for Pokitto. Usage: +# +# python convert_png.py input_image.png palette_16x16_image.png +# +# The script will read the input PNG image (must be in RGB format, NOT +# indexed), match each pixel to the closest color in the palette and output +# the image to stdout as an array of bytes, by columns. It's best if the image +# is made only of color of the palette as the closest match can sometimes look +# different from what you imagined. +# +# The script will also create an image (out.png) of the converted image, so +# that you can check how it looks. # # author: Miloslav Ciz # license: CC0