From e7d20cf352688bf717a01f4e6d9e6f497c2bea4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 20 Sep 2025 19:19:34 +0200 Subject: New upstream version 5.3.1Beta2 --- app/tools/mkimage1 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 app/tools/mkimage1 (limited to 'app/tools/mkimage1') diff --git a/app/tools/mkimage1 b/app/tools/mkimage1 new file mode 100755 index 0000000..fef13f6 --- /dev/null +++ b/app/tools/mkimage1 @@ -0,0 +1,24 @@ +#!/bin/bash +if [ $# -lt 2 ] ; then + echo mkimage1 OUTDIR PNG ... + echo Converts .pmg files to .image1 + echo Run from SRCDIR/app/bitmaps + echo + echo '$ cd $SRCDIR/app/bin/bitmaps' + echo '$ ../../tools/mkimage1 $BLDDIR/app/bin/bitamps *.png' + exit 1 +fi + +OUTDIR=$1 +if [ ! -d ${OUTDIR} ] ; then + echo ${OUTDIR} - not a directory + exit 1 +fi + +shift +for PNGFILE in "$@" ; do + NAME=`basename "$PNGFILE" | sed 's/.png//'`; + gdk-pixbuf-csource --stream --name "${NAME}_image1" ${PNGFILE} \ + | sed -e 's/guint8/char/g' \ + > ${OUTDIR}/${NAME}.image1 +done -- cgit v1.2.3