mirror of
https://github.com/Michaelangel007/apple2gs_shr_converter.git
synced 2024-11-27 20:50:06 +00:00
Add unix scripts
This commit is contained in:
commit
200d7b0f56
84
bin_unix/aspect43.sh
Normal file
84
bin_unix/aspect43.sh
Normal file
@ -0,0 +1,84 @@
|
||||
#!/bin/sh
|
||||
# aspect43.sh - center-crop all images to 4:3 aspect BMP (default usage)
|
||||
# optional usage "aspect43.sh PAD" - pad all images to 4:3 aspect BMP
|
||||
|
||||
# set path to ImageMagick binaries below
|
||||
# for ImageMagick version 6.9 use the following
|
||||
# MAGICK="c:/IM/convert"
|
||||
# IDENTIFY="c:/IM/identify"
|
||||
# for ImageMagick version 7 use the following
|
||||
MAGICK="c:/IM/magick"
|
||||
IDENTIFY="c:/IM/magick identify"
|
||||
|
||||
# For most modern Linux distributions, all ImageMagick binaries are located in: /usr/bin/ (see below)
|
||||
# for ImageMagick version 6.9 use the following
|
||||
# MAGICK="/usr/bin/convert"
|
||||
# IDENTIFY="/usr/bin/identify"
|
||||
# for ImageMagick version 7 use the following
|
||||
# MAGICK="/usr/bin/magick"
|
||||
# IDENTIFY="/usr/bin/magick identify"
|
||||
|
||||
# set path to A2B converter below
|
||||
A2B="C:/SHR/A2B2016/a2b"
|
||||
# For most modern Linux distributions, consider locating A2B in: /usr/bin/ (see below)
|
||||
# A2B="/usr/bin/a2b"
|
||||
|
||||
# default usage
|
||||
method="a43s"
|
||||
# optional usage
|
||||
if [ ! -z "$1" ]; then
|
||||
if [ "$1" == "PAD" ]; then
|
||||
method="p43s"
|
||||
fi
|
||||
if [ "$1" == "pad" ]; then
|
||||
method="p43s"
|
||||
fi
|
||||
fi
|
||||
|
||||
criteria="*.jpg"
|
||||
if ls ./*.jpg 1> /dev/null 2>&1 ; then
|
||||
for i in $( ls $criteria);
|
||||
do
|
||||
src=$i
|
||||
tgt=$(basename $i .jpg)
|
||||
$IDENTIFY $src > $tgt.id
|
||||
$A2B $src $method
|
||||
chmod 777 $tgt.sh
|
||||
./$tgt.sh $MAGICK $src $tgt
|
||||
rm $tgt.id
|
||||
rm $tgt.sh
|
||||
mv $src ./jpg/
|
||||
done
|
||||
fi
|
||||
criteria="*.png"
|
||||
if ls ./*.png 1> /dev/null 2>&1 ; then
|
||||
for i in $( ls $criteria);
|
||||
do
|
||||
src=$i
|
||||
tgt=$(basename $i .png)
|
||||
$IDENTIFY $src > $tgt.id
|
||||
$A2B $src $method
|
||||
chmod 777 $tgt.sh
|
||||
./$tgt.sh $MAGICK $src $tgt
|
||||
rm $tgt.id
|
||||
rm $tgt.sh
|
||||
mv $src ./jpg/
|
||||
done
|
||||
fi
|
||||
criteria="*.gif"
|
||||
if ls ./*.gif 1> /dev/null 2>&1 ; then
|
||||
for i in $( ls $criteria);
|
||||
do
|
||||
src=$i
|
||||
tgt=$(basename $i .gif)
|
||||
$IDENTIFY $src > $tgt.id
|
||||
$A2B $src $method
|
||||
chmod 777 $tgt.sh
|
||||
./$tgt.sh $MAGICK $src $tgt
|
||||
rm $tgt.id
|
||||
rm $tgt.sh
|
||||
mv $src ./jpg/
|
||||
done
|
||||
fi
|
||||
|
||||
# this is the end
|
56
bin_unix/cvt.sh
Normal file
56
bin_unix/cvt.sh
Normal file
@ -0,0 +1,56 @@
|
||||
#!/bin/sh
|
||||
# cvt.sh - creates 6 variations of 320 x 200 SHR files using A2B and external segmented palettes
|
||||
|
||||
# set path to A2B converter below
|
||||
A2B="F:/SHR/A2B2015/a2b"
|
||||
# For most modern Linux distributions, consider locating A2B in: /usr/bin/ (see below)
|
||||
# A2B="/usr/bin/a2b"
|
||||
|
||||
if [ ! -e SH30709 ]; then
|
||||
mkdir SH30709
|
||||
fi
|
||||
if [ ! -e SH32709 ]; then
|
||||
mkdir SH32709
|
||||
fi
|
||||
if [ ! -e SH33709 ]; then
|
||||
mkdir SH33709
|
||||
fi
|
||||
if [ ! -e SH30709raw ]; then
|
||||
mkdir SH30709raw
|
||||
fi
|
||||
if [ ! -e SH32709raw ]; then
|
||||
mkdir SH32709raw
|
||||
fi
|
||||
if [ ! -e SH33709raw ]; then
|
||||
mkdir SH33709raw
|
||||
fi
|
||||
|
||||
if [ ! -e todo ]; then
|
||||
mkdir todo
|
||||
fi
|
||||
if [ ! -e done ]; then
|
||||
mkdir done
|
||||
fi
|
||||
|
||||
# make External Segmented Palettes using ImageMagick
|
||||
./slicer.sh
|
||||
|
||||
# Call A2B to create SHR files
|
||||
criteria="*.bmp"
|
||||
if ls ./*.bmp 1> /dev/null 2>&1 ; then
|
||||
for i in $( ls $criteria); do
|
||||
src=$i
|
||||
tgt=$(basename $i .bmp)
|
||||
|
||||
$A2B $src SH30709/$src dr m2s t PIMsh0pcx/$tgt/foo sum l709 > /dev/null
|
||||
$A2B $src SH32709/$src dr m2s t PIMsh2pcx/$tgt/foo sum l709 > /dev/null
|
||||
$A2B $src SH33709/$src dr m2s t PIMsh3pcx/$tgt/foo sum l709 > /dev/null
|
||||
|
||||
$A2B $src SH30709raw/$src m2s t PIMsh0pcx/$tgt/foo sum l709 > /dev/null
|
||||
$A2B $src SH32709raw/$src m2s t PIMsh2pcx/$tgt/foo sum l709 > /dev/null
|
||||
$A2B $src SH33709raw/$src m2s t PIMsh3pcx/$tgt/foo sum l709 > /dev/null
|
||||
done
|
||||
mv *.bmp ./done/
|
||||
fi
|
||||
|
||||
# this is the end
|
81
bin_unix/cvt2bmp.sh
Normal file
81
bin_unix/cvt2bmp.sh
Normal file
@ -0,0 +1,81 @@
|
||||
#!/bin/sh
|
||||
# cvt2bmp.sh - uses ImageMagick to produce 320 x 200 Input Files for A2B
|
||||
|
||||
# set path to ImageMagick binaries below
|
||||
# for ImageMagick version 6.9 use the following
|
||||
# MAGICK="c:/IM/convert"
|
||||
# for ImageMagick version 7 use the following
|
||||
MAGICK="c:/IM/magick"
|
||||
|
||||
# For most modern Linux distributions, all ImageMagick binaries are located in: /usr/bin/ (see below)
|
||||
# for ImageMagick version 6.9 use the following
|
||||
# MAGICK="/usr/bin/convert"
|
||||
# for ImageMagick version 7 use the following
|
||||
# MAGICK="/usr/bin/magick"
|
||||
|
||||
if [ ! -e BMP320 ]; then
|
||||
mkdir BMP320
|
||||
fi
|
||||
if [ ! -e ORGBMP ]; then
|
||||
mkdir ORGBMP
|
||||
fi
|
||||
if [ ! -e jpg ]; then
|
||||
mkdir jpg
|
||||
fi
|
||||
|
||||
# create GIF input files for native mode converters if needed.
|
||||
# if [ ! -e gif ]; then
|
||||
# mkdir gif
|
||||
# fi
|
||||
|
||||
# assumes that all input files are 4:3 Aspect Ratio
|
||||
# accepts jpegs, pngs, gifs, or BMPs as input files
|
||||
# converts everything to truecolor BMP before scaling to avoid color loss
|
||||
|
||||
criteria="*.jpg"
|
||||
if ls ./*.jpg 1> /dev/null 2>&1 ; then
|
||||
for i in $( ls $criteria);
|
||||
do
|
||||
src=$i
|
||||
tgt=$(basename $i .jpg)
|
||||
$MAGICK $src -type truecolor -units PixelsPerInch -density 72 -compress None -depth 24 -define format:BMP3 $tgt.bmp
|
||||
mv $src ./jpg/
|
||||
done
|
||||
fi
|
||||
criteria="*.png"
|
||||
if ls ./*.png 1> /dev/null 2>&1 ; then
|
||||
for i in $( ls $criteria);
|
||||
do
|
||||
src=$i
|
||||
tgt=$(basename $i .png)
|
||||
$MAGICK $src -type truecolor -units PixelsPerInch -density 72 -compress None -depth 24 -define format:BMP3 $tgt.bmp
|
||||
mv $src ./jpg/
|
||||
done
|
||||
fi
|
||||
criteria="*.gif"
|
||||
if ls ./*.gif 1> /dev/null 2>&1 ; then
|
||||
for i in $( ls $criteria);
|
||||
do
|
||||
src=$i
|
||||
tgt=$(basename $i .gif)
|
||||
$MAGICK $src -type truecolor -units PixelsPerInch -density 72 -compress None -depth 24 -define format:BMP3 $tgt.bmp
|
||||
mv $src ./jpg/
|
||||
done
|
||||
fi
|
||||
|
||||
# create A2B's input files - scaling is done here.
|
||||
criteria="*.bmp"
|
||||
if ls ./*.bmp 1> /dev/null 2>&1 ; then
|
||||
for i in $( ls $criteria);
|
||||
do
|
||||
src=$i
|
||||
tgt=$(basename $i .bmp)
|
||||
$MAGICK $src -resize "320x200!" -type truecolor -units PixelsPerInch -density 72 -compress None -depth 24 -define format:BMP3 BMP320//$tgt.bmp
|
||||
# create GIF input files for native mode converters if needed.
|
||||
# $MAGICK $src -colors 256 -define format:GIF gif//"$tgt"x.gif
|
||||
done
|
||||
mv *.bmp ./ORGBMP/
|
||||
mv BMP320/*.bmp ./
|
||||
fi
|
||||
|
||||
# this is the end
|
169
bin_unix/magall.sh
Normal file
169
bin_unix/magall.sh
Normal file
@ -0,0 +1,169 @@
|
||||
#!/bin/sh
|
||||
# magall.sh - post process the output from the A2B converter
|
||||
# use ImageMagick to make double scaled preview files for review in a separate subdirectory
|
||||
# these can be viewed as a slide-show under Windows
|
||||
# copy SHR output to a separate subdirectory (with no additional files) for preparing Apple IIgs slide-shows
|
||||
# CiderPress can then be used more easily to place SHR files on an Apple IIgs Disk Image
|
||||
|
||||
# set paths to ImageMagick below
|
||||
# for ImageMagick version 6.9 use ImageMagick's convert utility
|
||||
# MAGICK="C:/IM/convert"
|
||||
# for ImageMagick version 7 use the following
|
||||
MAGICK="C:/IM/magick"
|
||||
# For most modern Linux distributions, all ImageMagick binaries are located in: /usr/bin/ (see below)
|
||||
# for ImageMagick version 6.9
|
||||
# MAGICK="/usr/bin/convert"
|
||||
# for ImageMagick version 7
|
||||
# MAGICK="/usr/bin/magick"
|
||||
|
||||
cd SH30709raw
|
||||
if [ ! -e png ]; then
|
||||
mkdir png
|
||||
fi
|
||||
if [ ! -e shr ]; then
|
||||
mkdir shr
|
||||
fi
|
||||
if ls ./*_proc.bmp 1> /dev/null 2>&1 ; then
|
||||
criteria="*_proc.bmp"
|
||||
for i in $( ls $criteria); do
|
||||
src=$i
|
||||
tgt=$(basename $i .bmp)
|
||||
if [ ! -e ./png/$src ]; then
|
||||
$MAGICK $src -magnify -define format:PNG png//$tgt.png
|
||||
fi
|
||||
done
|
||||
criteria="*.SH*"
|
||||
for i in $( ls $criteria); do
|
||||
src=$i
|
||||
if [ ! -e ./shr/$src ]; then
|
||||
cp $src shr/$src
|
||||
fi
|
||||
done
|
||||
fi
|
||||
cd ..
|
||||
cd SH32709raw
|
||||
if [ ! -e png ]; then
|
||||
mkdir png
|
||||
fi
|
||||
if [ ! -e shr ]; then
|
||||
mkdir shr
|
||||
fi
|
||||
if ls ./*_proc.bmp 1> /dev/null 2>&1 ; then
|
||||
criteria="*_proc.bmp"
|
||||
for i in $( ls $criteria); do
|
||||
src=$i
|
||||
tgt=$(basename $i .bmp)
|
||||
if [ ! -e ./png/$src ]; then
|
||||
$MAGICK $src -magnify -define format:PNG png//$tgt.png
|
||||
fi
|
||||
done
|
||||
criteria="*.SH*"
|
||||
for i in $( ls $criteria); do
|
||||
src=$i
|
||||
if [ ! -e ./shr/$src ]; then
|
||||
cp $src shr/$src
|
||||
fi
|
||||
done
|
||||
fi
|
||||
cd ..
|
||||
cd SH33709raw
|
||||
if [ ! -e png ]; then
|
||||
mkdir png
|
||||
fi
|
||||
if [ ! -e shr ]; then
|
||||
mkdir shr
|
||||
fi
|
||||
if ls ./*_proc.bmp 1> /dev/null 2>&1 ; then
|
||||
criteria="*_proc.bmp"
|
||||
for i in $( ls $criteria); do
|
||||
src=$i
|
||||
tgt=$(basename $i .bmp)
|
||||
if [ ! -e ./png/$src ]; then
|
||||
$MAGICK $src -magnify -define format:PNG png//$tgt.png
|
||||
fi
|
||||
done
|
||||
criteria="*.SH*"
|
||||
for i in $( ls $criteria); do
|
||||
src=$i
|
||||
if [ ! -e ./shr/$src ]; then
|
||||
cp $src shr/$src
|
||||
fi
|
||||
done
|
||||
fi
|
||||
cd ..
|
||||
cd sh33709
|
||||
if [ ! -e png ]; then
|
||||
mkdir png
|
||||
fi
|
||||
if [ ! -e shr ]; then
|
||||
mkdir shr
|
||||
fi
|
||||
if ls ./*_proc.bmp 1> /dev/null 2>&1 ; then
|
||||
criteria="*_proc.bmp"
|
||||
for i in $( ls $criteria); do
|
||||
src=$i
|
||||
tgt=$(basename $i .bmp)
|
||||
if [ ! -e ./png/$src ]; then
|
||||
$MAGICK $src -magnify -define format:PNG png//$tgt.png
|
||||
fi
|
||||
done
|
||||
criteria="*.SH*"
|
||||
for i in $( ls $criteria); do
|
||||
src=$i
|
||||
if [ ! -e ./shr/$src ]; then
|
||||
cp $src shr/$src
|
||||
fi
|
||||
done
|
||||
fi
|
||||
cd ..
|
||||
cd sh32709
|
||||
if [ ! -e png ]; then
|
||||
mkdir png
|
||||
fi
|
||||
if [ ! -e shr ]; then
|
||||
mkdir shr
|
||||
fi
|
||||
if ls ./*_proc.bmp 1> /dev/null 2>&1 ; then
|
||||
criteria="*_proc.bmp"
|
||||
for i in $( ls $criteria); do
|
||||
src=$i
|
||||
tgt=$(basename $i .bmp)
|
||||
if [ ! -e ./png/$src ]; then
|
||||
$MAGICK $src -magnify -define format:PNG png//$tgt.png
|
||||
fi
|
||||
done
|
||||
criteria="*.SH*"
|
||||
for i in $( ls $criteria); do
|
||||
src=$i
|
||||
if [ ! -e ./shr/$src ]; then
|
||||
cp $src shr/$src
|
||||
fi
|
||||
done
|
||||
fi
|
||||
cd ..
|
||||
cd sh30709
|
||||
if [ ! -e png ]; then
|
||||
mkdir png
|
||||
fi
|
||||
if [ ! -e shr ]; then
|
||||
mkdir shr
|
||||
fi
|
||||
if ls ./*_proc.bmp 1> /dev/null 2>&1 ; then
|
||||
criteria="*_proc.bmp"
|
||||
for i in $( ls $criteria); do
|
||||
src=$i
|
||||
tgt=$(basename $i .bmp)
|
||||
if [ ! -e ./png/$src ]; then
|
||||
$MAGICK $src -magnify -define format:PNG png//$tgt.png
|
||||
fi
|
||||
done
|
||||
criteria="*.SH*"
|
||||
for i in $( ls $criteria); do
|
||||
src=$i
|
||||
if [ ! -e ./shr/$src ]; then
|
||||
cp $src shr/$src
|
||||
fi
|
||||
done
|
||||
fi
|
||||
cd ..
|
||||
# this is the end
|
25
bin_unix/mass_crop_identical_size.sh
Normal file
25
bin_unix/mass_crop_identical_size.sh
Normal file
@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
# crop1440.sh - center-crop jpeg 1920 x 1080 hd wallpaper to 4:3 aspect BMP
|
||||
# set path to ImageMagick below
|
||||
# for ImageMagick version 6.9 use the following
|
||||
# MAGICK="c:/IM/convert"
|
||||
# for ImageMagick version 7 use the following
|
||||
MAGICK="c:/IM/magick"
|
||||
# For most modern Linux distributions, all ImageMagick binaries are located in: /usr/bin/ (see below)
|
||||
# for ImageMagick version 6.9 use the following
|
||||
# MAGICK="/usr/bin/convert"
|
||||
# for ImageMagick version 7 use the following
|
||||
# MAGICK="/usr/bin/magick"
|
||||
criteria="*.jpg"
|
||||
if ls ./*.jpg 1> /dev/null 2>&1 ; then
|
||||
if [ ! -e jpg ]; then
|
||||
mkdir jpg
|
||||
fi
|
||||
for i in $( ls $criteria);
|
||||
do
|
||||
src=$i
|
||||
tgt=$(basename $i .jpg)
|
||||
$MAGICK $src -gravity center -crop 1440x1080+0+0 -define format:BMP $tgt.bmp
|
||||
mv $src ./jpg/
|
||||
done
|
||||
fi
|
84
bin_unix/pad43.sh
Normal file
84
bin_unix/pad43.sh
Normal file
@ -0,0 +1,84 @@
|
||||
#!/bin/sh
|
||||
# pad43.sh - pad all images to 4:3 aspect BMP (default usage)
|
||||
# optional usage "pad43.sh CROP" - center-crop all images to 4:3 aspect BMP
|
||||
|
||||
# set path to ImageMagick binaries below
|
||||
# for ImageMagick version 6.9 use the following
|
||||
# MAGICK="c:/IM/convert"
|
||||
# IDENTIFY="c:/IM/identify"
|
||||
# for ImageMagick version 7 use the following
|
||||
MAGICK="c:/IM/magick"
|
||||
IDENTIFY="c:/IM/magick identify"
|
||||
|
||||
# For most modern Linux distributions, all ImageMagick binaries are located in: /usr/bin/ (see below)
|
||||
# for ImageMagick version 6.9 use the following
|
||||
# MAGICK="/usr/bin/convert"
|
||||
# IDENTIFY="/usr/bin/identify"
|
||||
# for ImageMagick version 7 use the following
|
||||
# MAGICK="/usr/bin/magick"
|
||||
# IDENTIFY="/usr/bin/magick identify"
|
||||
|
||||
# set path to A2B converter below
|
||||
A2B="C:/SHR/A2B2016/a2b"
|
||||
# For most modern Linux distributions, consider locating A2B in: /usr/bin/ (see below)
|
||||
# A2B="/usr/bin/a2b"
|
||||
|
||||
# default usage
|
||||
method="p43s"
|
||||
# optional usage
|
||||
if [ ! -z "$1" ]; then
|
||||
if [ "$1" == "CROP" ]; then
|
||||
method="a43s"
|
||||
fi
|
||||
if [ "$1" == "crop" ]; then
|
||||
method="a43s"
|
||||
fi
|
||||
fi
|
||||
|
||||
criteria="*.jpg"
|
||||
if ls ./*.jpg 1> /dev/null 2>&1 ; then
|
||||
for i in $( ls $criteria);
|
||||
do
|
||||
src=$i
|
||||
tgt=$(basename $i .jpg)
|
||||
$IDENTIFY $src > $tgt.id
|
||||
$A2B $src $method
|
||||
chmod 777 $tgt.sh
|
||||
./$tgt.sh $MAGICK $src $tgt
|
||||
rm $tgt.id
|
||||
rm $tgt.sh
|
||||
mv $src ./jpg/
|
||||
done
|
||||
fi
|
||||
criteria="*.png"
|
||||
if ls ./*.png 1> /dev/null 2>&1 ; then
|
||||
for i in $( ls $criteria);
|
||||
do
|
||||
src=$i
|
||||
tgt=$(basename $i .png)
|
||||
$IDENTIFY $src > $tgt.id
|
||||
$A2B $src $method
|
||||
chmod 777 $tgt.sh
|
||||
./$tgt.sh $MAGICK $src $tgt
|
||||
rm $tgt.id
|
||||
rm $tgt.sh
|
||||
mv $src ./jpg/
|
||||
done
|
||||
fi
|
||||
criteria="*.gif"
|
||||
if ls ./*.gif 1> /dev/null 2>&1 ; then
|
||||
for i in $( ls $criteria);
|
||||
do
|
||||
src=$i
|
||||
tgt=$(basename $i .gif)
|
||||
$IDENTIFY $src > $tgt.id
|
||||
$A2B $src $method
|
||||
chmod 777 $tgt.sh
|
||||
./$tgt.sh $MAGICK $src $tgt
|
||||
rm $tgt.id
|
||||
rm $tgt.sh
|
||||
mv $src ./jpg/
|
||||
done
|
||||
fi
|
||||
|
||||
# this is the end
|
51
bin_unix/remove_unwanted_files.bat
Normal file
51
bin_unix/remove_unwanted_files.bat
Normal file
@ -0,0 +1,51 @@
|
||||
#!/bin/sh
|
||||
# kill.sh - house-cleaning script
|
||||
# cleans unwanted input and output from working directory
|
||||
# must be run from the command line
|
||||
# killpalette.sh must also be run after kill.sh to remove unused external palettes
|
||||
if [ ! -z "$1" ]; then
|
||||
find -iname $1* -exec rm {} \;
|
||||
else
|
||||
echo "no args"
|
||||
fi
|
||||
# this is the end
|
||||
|
||||
#!/bin/sh
|
||||
# killpalette.sh - house-cleaning script
|
||||
# removes external segmented palette files left-over from deleted images and related output
|
||||
# then removes the associated palette directory
|
||||
# if the done directory does not contain a processed bmp, assumes the palettes are no longer needed
|
||||
cd sh0pcx
|
||||
for i in $(ls); do
|
||||
tgt=$(basename $i)
|
||||
if [ ! -e ../done/$tgt.bmp ]; then
|
||||
if [ -e ./$tgt/0.pcx ]; then
|
||||
rm ./$tgt/*.pcx
|
||||
fi
|
||||
rmdir ./$tgt
|
||||
fi
|
||||
done
|
||||
cd ..
|
||||
cd sh2pcx
|
||||
for i in $(ls); do
|
||||
tgt=$(basename $i)
|
||||
if [ ! -e ../done/$tgt.bmp ]; then
|
||||
if [ -e ./$tgt/0.pcx ]; then
|
||||
rm ./$tgt/*.pcx
|
||||
fi
|
||||
rmdir ./$tgt
|
||||
fi
|
||||
done
|
||||
cd ..
|
||||
cd sh3pcx
|
||||
for i in $(ls); do
|
||||
tgt=$(basename $i)
|
||||
if [ ! -e ../done/$tgt.bmp ]; then
|
||||
if [ -e ./$tgt/0.pcx ]; then
|
||||
rm ./$tgt/*.pcx
|
||||
fi
|
||||
rmdir ./$tgt
|
||||
fi
|
||||
done
|
||||
cd ..
|
||||
# this is the end
|
309
bin_unix/slicer.sh
Normal file
309
bin_unix/slicer.sh
Normal file
@ -0,0 +1,309 @@
|
||||
#!/bin/sh
|
||||
# slicer.sh - shell script to produce External Segment Palette Files for A2B
|
||||
|
||||
# set paths to ImageMagick below
|
||||
# for ImageMagick version 6.9 use ImageMagick's convert utility
|
||||
# MAGICK="C:/IM/convert"
|
||||
# for ImageMagick version 7 use the following
|
||||
MAGICK="C:/IM/magick"
|
||||
# For most modern Linux distributions, all ImageMagick binaries are located in: /usr/bin/ (see below)
|
||||
# for ImageMagick version 6.9
|
||||
# MAGICK="/usr/bin/convert"
|
||||
# for ImageMagick version 7
|
||||
# MAGICK="/usr/bin/magick"
|
||||
|
||||
# create directory structure for 16 color image segments
|
||||
if [ ! -e sh0pcx ]; then
|
||||
mkdir sh0pcx
|
||||
fi
|
||||
#if [ ! -e sh1pcx ]; then
|
||||
# mkdir sh1pcx
|
||||
#fi
|
||||
if [ ! -e sh2pcx ]; then
|
||||
mkdir sh2pcx
|
||||
fi
|
||||
if [ ! -e sh3pcx ]; then
|
||||
mkdir sh3pcx
|
||||
fi
|
||||
|
||||
# segment directories are of the same basename as the bmp being converted
|
||||
# the segments themselves are 0.pcx 1.pcx, 2.pcx, etc.
|
||||
criteria="*.bmp"
|
||||
if ls ./*.bmp 1> /dev/null 2>&1 ; then
|
||||
for i in $( ls $criteria); do
|
||||
tgt=$(basename $i .bmp)
|
||||
if [ ! -e ./sh0pcx/$tgt ]; then
|
||||
mkdir sh0pcx/$tgt
|
||||
fi
|
||||
# if [ ! -e ./sh1pcx/$tgt ]; then
|
||||
# mkdir sh1pcx/$tgt
|
||||
# fi
|
||||
if [ ! -e ./sh2pcx/$tgt ]; then
|
||||
mkdir sh2pcx/$tgt
|
||||
fi
|
||||
if [ ! -e ./sh3pcx/$tgt ]; then
|
||||
mkdir sh3pcx/$tgt
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# 8-segments for multi-palette for motion video
|
||||
# if ls ./*.bmp 1> /dev/null 2>&1 ; then
|
||||
# for i in $( ls $criteria); do
|
||||
# src=$i
|
||||
# tgt=$(basename $i .bmp)
|
||||
# $MAGICK $src -crop 320x25+0+175 -dither FloydSteinberg -colors 16 -define format:PCX sh1pcx//$tgt//0.pcx
|
||||
# $MAGICK $src -crop 320x25+0+150 -dither FloydSteinberg -colors 16 -define format:PCX sh1pcx//$tgt//1.pcx
|
||||
# $MAGICK $src -crop 320x25+0+125 -dither FloydSteinberg -colors 16 -define format:PCX sh1pcx//$tgt//2.pcx
|
||||
# $MAGICK $src -crop 320x25+0+100 -dither FloydSteinberg -colors 16 -define format:PCX sh1pcx//$tgt//3.pcx
|
||||
# $MAGICK $src -crop 320x25+0+75 -dither FloydSteinberg -colors 16 -define format:PCX sh1pcx//$tgt//4.pcx
|
||||
# $MAGICK $src -crop 320x25+0+50 -dither FloydSteinberg -colors 16 -define format:PCX sh1pcx//$tgt//5.pcx
|
||||
# $MAGICK $src -crop 320x25+0+25 -dither FloydSteinberg -colors 16 -define format:PCX sh1pcx//$tgt//6.pcx
|
||||
# $MAGICK $src -crop 320x25+0+0 -dither FloydSteinberg -colors 16 -define format:PCX sh1pcx//$tgt//7.pcx
|
||||
# done
|
||||
# fi
|
||||
|
||||
# use the same segments currently used in A2B
|
||||
|
||||
# 1-segment for single palette SHR
|
||||
if ls ./*.bmp 1> /dev/null 2>&1 ; then
|
||||
for i in $( ls $criteria); do
|
||||
src=$i
|
||||
tgt=$(basename $i .bmp)
|
||||
$MAGICK $src -dither FloydSteinberg -colors 16 -define format:PCX sh0pcx//$tgt//0.pcx
|
||||
done
|
||||
fi
|
||||
|
||||
# 16-segments for multi-palette
|
||||
if ls ./*.bmp 1> /dev/null 2>&1 ; then
|
||||
for i in $( ls $criteria); do
|
||||
src=$i
|
||||
tgt=$(basename $i .bmp)
|
||||
$MAGICK $src -crop 320x13+0+187 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx//$tgt//0.pcx
|
||||
$MAGICK $src -crop 320x12+0+175 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx//$tgt//1.pcx
|
||||
$MAGICK $src -crop 320x13+0+162 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx//$tgt//2.pcx
|
||||
$MAGICK $src -crop 320x12+0+150 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx//$tgt//3.pcx
|
||||
$MAGICK $src -crop 320x13+0+137 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx//$tgt//4.pcx
|
||||
$MAGICK $src -crop 320x12+0+125 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx//$tgt//5.pcx
|
||||
$MAGICK $src -crop 320x13+0+112 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx//$tgt//6.pcx
|
||||
$MAGICK $src -crop 320x12+0+100 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx//$tgt//7.pcx
|
||||
$MAGICK $src -crop 320x13+0+87 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx//$tgt//8.pcx
|
||||
$MAGICK $src -crop 320x12+0+75 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx//$tgt//9.pcx
|
||||
$MAGICK $src -crop 320x13+0+62 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx//$tgt//10.pcx
|
||||
$MAGICK $src -crop 320x12+0+50 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx//$tgt//11.pcx
|
||||
$MAGICK $src -crop 320x13+0+37 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx//$tgt//12.pcx
|
||||
$MAGICK $src -crop 320x12+0+25 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx//$tgt//13.pcx
|
||||
$MAGICK $src -crop 320x13+0+12 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx//$tgt//14.pcx
|
||||
$MAGICK $src -crop 320x12+0+0 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx//$tgt//15.pcx
|
||||
done
|
||||
fi
|
||||
|
||||
# 200-segments for brooks
|
||||
if ls ./*.bmp 1> /dev/null 2>&1 ; then
|
||||
for i in $( ls $criteria); do
|
||||
src=$i
|
||||
tgt=$(basename $i .bmp)
|
||||
$MAGICK $src -crop 320x1+0+199 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//0.pcx
|
||||
$MAGICK $src -crop 320x1+0+198 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//1.pcx
|
||||
$MAGICK $src -crop 320x1+0+197 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//2.pcx
|
||||
$MAGICK $src -crop 320x1+0+196 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//3.pcx
|
||||
$MAGICK $src -crop 320x1+0+195 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//4.pcx
|
||||
$MAGICK $src -crop 320x1+0+194 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//5.pcx
|
||||
$MAGICK $src -crop 320x1+0+193 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//6.pcx
|
||||
$MAGICK $src -crop 320x1+0+192 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//7.pcx
|
||||
$MAGICK $src -crop 320x1+0+191 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//8.pcx
|
||||
$MAGICK $src -crop 320x1+0+190 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//9.pcx
|
||||
$MAGICK $src -crop 320x1+0+189 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//10.pcx
|
||||
$MAGICK $src -crop 320x1+0+188 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//11.pcx
|
||||
$MAGICK $src -crop 320x1+0+187 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//12.pcx
|
||||
$MAGICK $src -crop 320x1+0+186 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//13.pcx
|
||||
$MAGICK $src -crop 320x1+0+185 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//14.pcx
|
||||
$MAGICK $src -crop 320x1+0+184 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//15.pcx
|
||||
$MAGICK $src -crop 320x1+0+183 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//16.pcx
|
||||
$MAGICK $src -crop 320x1+0+182 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//17.pcx
|
||||
$MAGICK $src -crop 320x1+0+181 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//18.pcx
|
||||
$MAGICK $src -crop 320x1+0+180 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//19.pcx
|
||||
$MAGICK $src -crop 320x1+0+179 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//20.pcx
|
||||
$MAGICK $src -crop 320x1+0+178 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//21.pcx
|
||||
$MAGICK $src -crop 320x1+0+177 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//22.pcx
|
||||
$MAGICK $src -crop 320x1+0+176 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//23.pcx
|
||||
$MAGICK $src -crop 320x1+0+175 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//24.pcx
|
||||
$MAGICK $src -crop 320x1+0+174 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//25.pcx
|
||||
$MAGICK $src -crop 320x1+0+173 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//26.pcx
|
||||
$MAGICK $src -crop 320x1+0+172 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//27.pcx
|
||||
$MAGICK $src -crop 320x1+0+171 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//28.pcx
|
||||
$MAGICK $src -crop 320x1+0+170 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//29.pcx
|
||||
$MAGICK $src -crop 320x1+0+169 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//30.pcx
|
||||
$MAGICK $src -crop 320x1+0+168 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//31.pcx
|
||||
$MAGICK $src -crop 320x1+0+167 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//32.pcx
|
||||
$MAGICK $src -crop 320x1+0+166 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//33.pcx
|
||||
$MAGICK $src -crop 320x1+0+165 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//34.pcx
|
||||
$MAGICK $src -crop 320x1+0+164 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//35.pcx
|
||||
$MAGICK $src -crop 320x1+0+163 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//36.pcx
|
||||
$MAGICK $src -crop 320x1+0+162 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//37.pcx
|
||||
$MAGICK $src -crop 320x1+0+161 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//38.pcx
|
||||
$MAGICK $src -crop 320x1+0+160 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//39.pcx
|
||||
$MAGICK $src -crop 320x1+0+159 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//40.pcx
|
||||
$MAGICK $src -crop 320x1+0+158 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//41.pcx
|
||||
$MAGICK $src -crop 320x1+0+157 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//42.pcx
|
||||
$MAGICK $src -crop 320x1+0+156 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//43.pcx
|
||||
$MAGICK $src -crop 320x1+0+155 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//44.pcx
|
||||
$MAGICK $src -crop 320x1+0+154 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//45.pcx
|
||||
$MAGICK $src -crop 320x1+0+153 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//46.pcx
|
||||
$MAGICK $src -crop 320x1+0+152 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//47.pcx
|
||||
$MAGICK $src -crop 320x1+0+151 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//48.pcx
|
||||
$MAGICK $src -crop 320x1+0+150 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//49.pcx
|
||||
$MAGICK $src -crop 320x1+0+149 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//50.pcx
|
||||
$MAGICK $src -crop 320x1+0+148 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//51.pcx
|
||||
$MAGICK $src -crop 320x1+0+147 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//52.pcx
|
||||
$MAGICK $src -crop 320x1+0+146 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//53.pcx
|
||||
$MAGICK $src -crop 320x1+0+145 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//54.pcx
|
||||
$MAGICK $src -crop 320x1+0+144 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//55.pcx
|
||||
$MAGICK $src -crop 320x1+0+143 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//56.pcx
|
||||
$MAGICK $src -crop 320x1+0+142 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//57.pcx
|
||||
$MAGICK $src -crop 320x1+0+141 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//58.pcx
|
||||
$MAGICK $src -crop 320x1+0+140 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//59.pcx
|
||||
$MAGICK $src -crop 320x1+0+139 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//60.pcx
|
||||
$MAGICK $src -crop 320x1+0+138 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//61.pcx
|
||||
$MAGICK $src -crop 320x1+0+137 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//62.pcx
|
||||
$MAGICK $src -crop 320x1+0+136 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//63.pcx
|
||||
$MAGICK $src -crop 320x1+0+135 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//64.pcx
|
||||
$MAGICK $src -crop 320x1+0+134 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//65.pcx
|
||||
$MAGICK $src -crop 320x1+0+133 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//66.pcx
|
||||
$MAGICK $src -crop 320x1+0+132 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//67.pcx
|
||||
$MAGICK $src -crop 320x1+0+131 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//68.pcx
|
||||
$MAGICK $src -crop 320x1+0+130 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//69.pcx
|
||||
$MAGICK $src -crop 320x1+0+129 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//70.pcx
|
||||
$MAGICK $src -crop 320x1+0+128 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//71.pcx
|
||||
$MAGICK $src -crop 320x1+0+127 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//72.pcx
|
||||
$MAGICK $src -crop 320x1+0+126 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//73.pcx
|
||||
$MAGICK $src -crop 320x1+0+125 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//74.pcx
|
||||
$MAGICK $src -crop 320x1+0+124 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//75.pcx
|
||||
$MAGICK $src -crop 320x1+0+123 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//76.pcx
|
||||
$MAGICK $src -crop 320x1+0+122 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//77.pcx
|
||||
$MAGICK $src -crop 320x1+0+121 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//78.pcx
|
||||
$MAGICK $src -crop 320x1+0+120 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//79.pcx
|
||||
$MAGICK $src -crop 320x1+0+119 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//80.pcx
|
||||
$MAGICK $src -crop 320x1+0+118 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//81.pcx
|
||||
$MAGICK $src -crop 320x1+0+117 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//82.pcx
|
||||
$MAGICK $src -crop 320x1+0+116 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//83.pcx
|
||||
$MAGICK $src -crop 320x1+0+115 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//84.pcx
|
||||
$MAGICK $src -crop 320x1+0+114 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//85.pcx
|
||||
$MAGICK $src -crop 320x1+0+113 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//86.pcx
|
||||
$MAGICK $src -crop 320x1+0+112 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//87.pcx
|
||||
$MAGICK $src -crop 320x1+0+111 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//88.pcx
|
||||
$MAGICK $src -crop 320x1+0+110 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//89.pcx
|
||||
$MAGICK $src -crop 320x1+0+109 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//90.pcx
|
||||
$MAGICK $src -crop 320x1+0+108 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//91.pcx
|
||||
$MAGICK $src -crop 320x1+0+107 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//92.pcx
|
||||
$MAGICK $src -crop 320x1+0+106 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//93.pcx
|
||||
$MAGICK $src -crop 320x1+0+105 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//94.pcx
|
||||
$MAGICK $src -crop 320x1+0+104 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//95.pcx
|
||||
$MAGICK $src -crop 320x1+0+103 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//96.pcx
|
||||
$MAGICK $src -crop 320x1+0+102 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//97.pcx
|
||||
$MAGICK $src -crop 320x1+0+101 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//98.pcx
|
||||
$MAGICK $src -crop 320x1+0+100 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//99.pcx
|
||||
$MAGICK $src -crop 320x1+0+99 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//100.pcx
|
||||
$MAGICK $src -crop 320x1+0+98 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//101.pcx
|
||||
$MAGICK $src -crop 320x1+0+97 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//102.pcx
|
||||
$MAGICK $src -crop 320x1+0+96 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//103.pcx
|
||||
$MAGICK $src -crop 320x1+0+95 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//104.pcx
|
||||
$MAGICK $src -crop 320x1+0+94 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//105.pcx
|
||||
$MAGICK $src -crop 320x1+0+93 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//106.pcx
|
||||
$MAGICK $src -crop 320x1+0+92 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//107.pcx
|
||||
$MAGICK $src -crop 320x1+0+91 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//108.pcx
|
||||
$MAGICK $src -crop 320x1+0+90 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//109.pcx
|
||||
$MAGICK $src -crop 320x1+0+89 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//110.pcx
|
||||
$MAGICK $src -crop 320x1+0+88 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//111.pcx
|
||||
$MAGICK $src -crop 320x1+0+87 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//112.pcx
|
||||
$MAGICK $src -crop 320x1+0+86 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//113.pcx
|
||||
$MAGICK $src -crop 320x1+0+85 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//114.pcx
|
||||
$MAGICK $src -crop 320x1+0+84 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//115.pcx
|
||||
$MAGICK $src -crop 320x1+0+83 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//116.pcx
|
||||
$MAGICK $src -crop 320x1+0+82 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//117.pcx
|
||||
$MAGICK $src -crop 320x1+0+81 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//118.pcx
|
||||
$MAGICK $src -crop 320x1+0+80 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//119.pcx
|
||||
$MAGICK $src -crop 320x1+0+79 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//120.pcx
|
||||
$MAGICK $src -crop 320x1+0+78 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//121.pcx
|
||||
$MAGICK $src -crop 320x1+0+77 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//122.pcx
|
||||
$MAGICK $src -crop 320x1+0+76 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//123.pcx
|
||||
$MAGICK $src -crop 320x1+0+75 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//124.pcx
|
||||
$MAGICK $src -crop 320x1+0+74 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//125.pcx
|
||||
$MAGICK $src -crop 320x1+0+73 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//126.pcx
|
||||
$MAGICK $src -crop 320x1+0+72 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//127.pcx
|
||||
$MAGICK $src -crop 320x1+0+71 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//128.pcx
|
||||
$MAGICK $src -crop 320x1+0+70 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//129.pcx
|
||||
$MAGICK $src -crop 320x1+0+69 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//130.pcx
|
||||
$MAGICK $src -crop 320x1+0+68 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//131.pcx
|
||||
$MAGICK $src -crop 320x1+0+67 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//132.pcx
|
||||
$MAGICK $src -crop 320x1+0+66 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//133.pcx
|
||||
$MAGICK $src -crop 320x1+0+65 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//134.pcx
|
||||
$MAGICK $src -crop 320x1+0+64 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//135.pcx
|
||||
$MAGICK $src -crop 320x1+0+63 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//136.pcx
|
||||
$MAGICK $src -crop 320x1+0+62 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//137.pcx
|
||||
$MAGICK $src -crop 320x1+0+61 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//138.pcx
|
||||
$MAGICK $src -crop 320x1+0+60 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//139.pcx
|
||||
$MAGICK $src -crop 320x1+0+59 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//140.pcx
|
||||
$MAGICK $src -crop 320x1+0+58 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//141.pcx
|
||||
$MAGICK $src -crop 320x1+0+57 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//142.pcx
|
||||
$MAGICK $src -crop 320x1+0+56 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//143.pcx
|
||||
$MAGICK $src -crop 320x1+0+55 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//144.pcx
|
||||
$MAGICK $src -crop 320x1+0+54 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//145.pcx
|
||||
$MAGICK $src -crop 320x1+0+53 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//146.pcx
|
||||
$MAGICK $src -crop 320x1+0+52 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//147.pcx
|
||||
$MAGICK $src -crop 320x1+0+51 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//148.pcx
|
||||
$MAGICK $src -crop 320x1+0+50 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//149.pcx
|
||||
$MAGICK $src -crop 320x1+0+49 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//150.pcx
|
||||
$MAGICK $src -crop 320x1+0+48 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//151.pcx
|
||||
$MAGICK $src -crop 320x1+0+47 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//152.pcx
|
||||
$MAGICK $src -crop 320x1+0+46 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//153.pcx
|
||||
$MAGICK $src -crop 320x1+0+45 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//154.pcx
|
||||
$MAGICK $src -crop 320x1+0+44 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//155.pcx
|
||||
$MAGICK $src -crop 320x1+0+43 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//156.pcx
|
||||
$MAGICK $src -crop 320x1+0+42 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//157.pcx
|
||||
$MAGICK $src -crop 320x1+0+41 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//158.pcx
|
||||
$MAGICK $src -crop 320x1+0+40 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//159.pcx
|
||||
$MAGICK $src -crop 320x1+0+39 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//160.pcx
|
||||
$MAGICK $src -crop 320x1+0+38 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//161.pcx
|
||||
$MAGICK $src -crop 320x1+0+37 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//162.pcx
|
||||
$MAGICK $src -crop 320x1+0+36 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//163.pcx
|
||||
$MAGICK $src -crop 320x1+0+35 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//164.pcx
|
||||
$MAGICK $src -crop 320x1+0+34 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//165.pcx
|
||||
$MAGICK $src -crop 320x1+0+33 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//166.pcx
|
||||
$MAGICK $src -crop 320x1+0+32 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//167.pcx
|
||||
$MAGICK $src -crop 320x1+0+31 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//168.pcx
|
||||
$MAGICK $src -crop 320x1+0+30 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//169.pcx
|
||||
$MAGICK $src -crop 320x1+0+29 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//170.pcx
|
||||
$MAGICK $src -crop 320x1+0+28 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//171.pcx
|
||||
$MAGICK $src -crop 320x1+0+27 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//172.pcx
|
||||
$MAGICK $src -crop 320x1+0+26 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//173.pcx
|
||||
$MAGICK $src -crop 320x1+0+25 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//174.pcx
|
||||
$MAGICK $src -crop 320x1+0+24 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//175.pcx
|
||||
$MAGICK $src -crop 320x1+0+23 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//176.pcx
|
||||
$MAGICK $src -crop 320x1+0+22 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//177.pcx
|
||||
$MAGICK $src -crop 320x1+0+21 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//178.pcx
|
||||
$MAGICK $src -crop 320x1+0+20 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//179.pcx
|
||||
$MAGICK $src -crop 320x1+0+19 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//180.pcx
|
||||
$MAGICK $src -crop 320x1+0+18 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//181.pcx
|
||||
$MAGICK $src -crop 320x1+0+17 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//182.pcx
|
||||
$MAGICK $src -crop 320x1+0+16 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//183.pcx
|
||||
$MAGICK $src -crop 320x1+0+15 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//184.pcx
|
||||
$MAGICK $src -crop 320x1+0+14 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//185.pcx
|
||||
$MAGICK $src -crop 320x1+0+13 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//186.pcx
|
||||
$MAGICK $src -crop 320x1+0+12 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//187.pcx
|
||||
$MAGICK $src -crop 320x1+0+11 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//188.pcx
|
||||
$MAGICK $src -crop 320x1+0+10 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//189.pcx
|
||||
$MAGICK $src -crop 320x1+0+9 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//190.pcx
|
||||
$MAGICK $src -crop 320x1+0+8 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//191.pcx
|
||||
$MAGICK $src -crop 320x1+0+7 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//192.pcx
|
||||
$MAGICK $src -crop 320x1+0+6 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//193.pcx
|
||||
$MAGICK $src -crop 320x1+0+5 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//194.pcx
|
||||
$MAGICK $src -crop 320x1+0+4 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//195.pcx
|
||||
$MAGICK $src -crop 320x1+0+3 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//196.pcx
|
||||
$MAGICK $src -crop 320x1+0+2 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//197.pcx
|
||||
$MAGICK $src -crop 320x1+0+1 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//198.pcx
|
||||
$MAGICK $src -crop 320x1+0+0 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx//$tgt//199.pcx
|
||||
done
|
||||
fi
|
||||
|
||||
# this is the end
|
Loading…
Reference in New Issue
Block a user