This commit is contained in:
Michaelangel007 2016-08-24 09:54:56 -07:00
parent 690cc70e6e
commit 49580e4d16
18 changed files with 1326 additions and 0 deletions

21
SHR/batchfiles/aspect43.bat Executable file
View File

@ -0,0 +1,21 @@
@echo off
REM aspect43.bat - center-crop all images to 4:3 aspect BMP
REM calls cropper.bat to do so for each individual image
set CROP=CROP
REM optionally pad all images to 4:3 aspect BMP
if "%1" == "pad" set CROP=%1
if "%1" == "PAD" set CROP=%1
if "%1" == "" goto BEGIN
REM optionally set crop geometry to other gravities (N,S,E,W)
set CROP=%1
:BEGIN
if not exist jpg\*.* mkdir jpg >NUL
for %%f in (*.jpg) do call cropper.bat %%f %%~nf %CROP%
for %%f in (*.png) do call cropper.bat %%f %%~nf %CROP%
for %%f in (*.gif) do call cropper.bat %%f %%~nf %CROP%
cd jpg
if exist ..\*.jpg move ..\*.jpg . > NUL
if exist ..\*.png move ..\*.png . > NUL
if exist ..\*.gif move ..\*.gif . > NUL
cd ..
REM this is the end

39
SHR/batchfiles/cropper.bat Executable file
View File

@ -0,0 +1,39 @@
@echo off
REM cropper.bat - center-crop or pad image to 4:3 aspect BMP
REM called from aspect43.bat to center-crop each individual image
REM called from pad43.bat to pad each individual image
if "%1" == "" goto ENDER
REM set default method to crop
set METHOD=a43b
REM alternately for pillarboxed or letterboxed padding set method to pad
if "%3" == "PAD" set METHOD=p43b
if "%3" == "pad" set METHOD=p43b
REM alternately set crop geometry to gravities other than center (default)
if "%3" == "N" set METHOD=a43bNorth
if "%3" == "n" set METHOD=a43bNorth
if "%3" == "S" set METHOD=a43bSouth
if "%3" == "s" set METHOD=a43bSouth
if "%3" == "E" set METHOD=a43bEast
if "%3" == "e" set METHOD=a43bEast
if "%3" == "W" set METHOD=a43bWest
if "%3" == "w" set METHOD=a43bWest
REM set paths below
set A2B=..\a2b
rem for ImageMagick version 6.9 use the following
rem set MAGICK=c:\IM\convert
rem set IDENTIFY=c:\IM\identify
rem for ImageMagick version 7 use the following
set MAGICK=c:\IM\magick
set IDENTIFY=c:\IM\magick identify
REM redirect output from ImageMagick identify to a temporary id file for this image
call %IDENTIFY% %1 > %2.id
REM call A2B to use the id file to write a temporary batch file for this image
call %A2B% %1 %METHOD%
call %2.bat %MAGICK% %1 %2
REM clean-up the temporary files
del %2.bat
del %2.id
:ENDER
REM this is the end

33
SHR/batchfiles/cvt.bat Executable file
View File

@ -0,0 +1,33 @@
@echo off
REM cvt.bat - creates 6 variations of 320 x 200 SHR files using A2B and external segmented palettes
REM set path to A2B converter below
set A2B=..\a2b
if not exist SH30709\*.* mkdir SH30709 >NUL
if not exist SH32709\*.* mkdir SH32709 >NUL
if not exist SH33709\*.* mkdir SH33709 >NUL
if not exist SH30709raw\*.* mkdir SH30709raw >NUL
if not exist SH32709raw\*.* mkdir SH32709raw >NUL
if not exist SH33709raw\*.* mkdir SH33709raw >NUL
if not exist todo\*.* mkdir todo >NUL
if not exist done\*.* mkdir done >NUL
REM make External Segmented Palettes using ImageMagick
call slicer.bat
REM Call A2B to create SHR files
for %%f in (*.bmp) do call %A2B% %%f SH30709\%%f dr m2s t PIMsh0pcx\%%~nf\foo sum l709 >NUL
for %%f in (*.bmp) do call %A2B% %%f SH32709\%%f dr m2s t PIMsh2pcx\%%~nf\foo sum l709 >NUL
for %%f in (*.bmp) do call %A2B% %%f SH33709\%%f dr m2s t PIMsh3pcx\%%~nf\foo sum l709 >NUL
for %%f in (*.bmp) do call %A2B% %%f SH30709raw\%%f m2s t PIMsh0pcx\%%~nf\foo sum l709 >NUL
for %%f in (*.bmp) do call %A2B% %%f SH32709raw\%%f m2s t PIMsh2pcx\%%~nf\foo sum l709 >NUL
for %%f in (*.bmp) do call %A2B% %%f SH33709raw\%%f m2s t PIMsh3pcx\%%~nf\foo sum l709 >NUL
cd done
move ..\*.bmp .
cd ..
REM this is the end

41
SHR/batchfiles/cvt2bmp.bat Executable file
View File

@ -0,0 +1,41 @@
@echo off
REM cvt2bmp.bat - uses ImageMagick to produce 320 x 200 Input Files for A2B
REM set path to ImageMagick below
REM for ImageMagick version 6.9 use the following
REM set MAGICK=c:\IM\convert
REM for ImageMagick version 7 use the following
set MAGICK=C:\IM\magick
if not exist BMP320\*.* mkdir BMP320 >NUL
if not exist ORGBMP\*.* mkdir ORGBMP >NUL
if not exist jpg\*.* mkdir jpg >NUL
REM create GIF input files for native mode converters if needed.
REM if not exist gif\*.* mkdir gif >NUL
REM assumes that all input files are 4:3 Aspect Ratio
REM accepts jpegs, pngs, gifs, or BMPs as input files
REM converts everything to truecolor BMP before scaling to avoid color loss
for %%f in (*.jpg) do call %MAGICK% %%f -type truecolor -units PixelsPerInch -density 72 -compress None -depth 24 -define format:BMP3 %%~nf.bmp
for %%f in (*.png) do call %MAGICK% %%f -type truecolor -units PixelsPerInch -density 72 -compress None -depth 24 -define format:BMP3 %%~nf.bmp
for %%f in (*.gif) do call %MAGICK% %%f -type truecolor -units PixelsPerInch -density 72 -compress None -depth 24 -define format:BMP3 %%~nf.bmp
cd jpg
if exist ..\*.jpg move ..\*.jpg . > NUL
if exist ..\*.png move ..\*.png . > NUL
if exist ..\*.gif move ..\*.gif . > NUL
cd ..
REM create A2B's input files - scaling is done here.
for %%f in (*.bmp) do call %MAGICK% %%f -resize "320x200!" -type truecolor -units PixelsPerInch -density 72 -compress None -depth 24 -define format:BMP3 BMP320\%%~nf.bmp
REM create GIF input files for native mode converters if needed.
REM for %%f in (BMP320\*.bmp) do call %MAGICK% %%f -colors 256 -define format:GIF GIF\%%~nfx.gif
cd orgbmp
move ..\*.bmp .
cd ..\bmp320
move *.bmp ..\.
cd ..
REM this is the end

11
SHR/batchfiles/kill.bat Executable file
View File

@ -0,0 +1,11 @@
@echo off
REM kill.bat - house-cleaning batch file
REM cleans unwanted input and output from working directory
REM must be run from the command line
REM killpalette.bat must also be run after kill.bat to remove unused external palette directories
if "%1" == "" goto ENDER
dir %1*.* /s /b > work.txt
for /F %%j in (work.txt) do del %%j
del work.txt
:ENDER
REM this is the end

11
SHR/batchfiles/killpalette.bat Executable file
View File

@ -0,0 +1,11 @@
@echo off
REM killpalette.bat - house-cleaning batch file
REM removes unused palette directories left behind by kill.bat
dir sh0pcx\*.* /b /A:D > work.txt
for /F %%j in (work.txt) do if not exist sh0pcx\%%j\0.pcx rd sh0pcx\%%j
dir sh2pcx\*.* /b /A:D > work.txt
for /F %%j in (work.txt) do if not exist sh2pcx\%%j\0.pcx rd sh2pcx\%%j
dir sh3pcx\*.* /b /A:D > work.txt
for /F %%j in (work.txt) do if not exist sh3pcx\%%j\0.pcx rd sh3pcx\%%j
del work.txt
REM this is the end

49
SHR/batchfiles/magall.bat Executable file
View File

@ -0,0 +1,49 @@
@echo off
REM magall.bat - post process the output from the A2B converter
REM use ImageMagick to make double scaled preview files for review in a separate subdirectory
REM these can be viewed as a slide-show under Windows
REM copy SHR output to a separate subdirectory (with no additional files) for preparing Apple IIgs slide-shows
REM CiderPress can then be used more easily to place SHR files on an Apple IIgs Disk Image
REM set path to ImageMagick below
REM for ImageMagick version 6.9 use ImageMagick's convert utility
REM set MAGICK=C:\IM\convert
REM for ImageMagick version 7 use the following
set MAGICK=C:\IM\magick
cd SH30709raw
if not exist png\*.* mkdir png >NUL
if not exist shr\*.* mkdir shr >NUL
for %%f in (*_proc.bmp) do if not exist png\%%~nf.png call %MAGICK% %%f -magnify -define format:PNG png\%%~nf.png
for %%f in (*.shr#C10000) do if not exist SHR\%%f copy %%f shr\%%f > NUL
cd ..
cd SH32709raw
if not exist png\*.* mkdir png >NUL
if not exist shr\*.* mkdir shr >NUL
for %%f in (*_proc.bmp) do if not exist png\%%~nf.png call %MAGICK% %%f -magnify -define format:PNG png\%%~nf.png
for %%f in (*.sh2#C10000) do if not exist SHR\%%f copy %%f shr\%%f > NUL
cd ..
cd SH33709raw
if not exist png\*.* mkdir png >NUL
if not exist shr\*.* mkdir shr >NUL
for %%f in (*_proc.bmp) do if not exist png\%%~nf.png call %MAGICK% %%f -magnify -define format:PNG png\%%~nf.png
for %%f in (*.sh3#C10002) do if not exist SHR\%%f copy %%f shr\%%f > NUL
cd ..
cd sh33709
if not exist png\*.* mkdir png >NUL
if not exist shr\*.* mkdir shr >NUL
for %%f in (*_proc.bmp) do if not exist png\%%~nf.png call %MAGICK% %%f -magnify -define format:PNG png\%%~nf.png
for %%f in (*.sh3#C10002) do if not exist SHR\%%f copy %%f shr\%%f > NUL
cd ..
cd sh32709
if not exist png\*.* mkdir png >NUL
if not exist shr\*.* mkdir shr >NUL
for %%f in (*_proc.bmp) do if not exist png\%%~nf.png call %MAGICK% %%f -magnify -define format:PNG png\%%~nf.png
for %%f in (*.sh2#C10000) do if not exist SHR\%%f copy %%f shr\%%f > NUL
cd ..
cd sh30709
if not exist png\*.* mkdir png >NUL
if not exist shr\*.* mkdir shr >NUL
for %%f in (*_proc.bmp) do if not exist png\%%~nf.png call %MAGICK% %%f -magnify -define format:PNG png\%%~nf.png
for %%f in (*.shr#C10000) do if not exist SHR\%%f copy %%f shr\%%f > NUL
cd ..
REM this is the end

17
SHR/batchfiles/pad43.bat Executable file
View File

@ -0,0 +1,17 @@
@echo off
REM pad43.bat - pad all images to 4:3 aspect BMP
REM calls cropper.bat to do so for each individual image
set PAD=PAD
REM optionally crop all images to 4:3 aspect BMP
if "%1" == "crop" set PAD=%1
if "%1" == "CROP" set PAD=%1
if not exist jpg\*.* mkdir jpg >NUL
for %%f in (*.jpg) do call cropper.bat %%f %%~nf %PAD%
for %%f in (*.png) do call cropper.bat %%f %%~nf %PAD%
for %%f in (*.gif) do call cropper.bat %%f %%~nf %PAD%
cd jpg
if exist ..\*.jpg move ..\*.jpg . > NUL
if exist ..\*.png move ..\*.png . > NUL
if exist ..\*.gif move ..\*.gif . > NUL
cd ..
REM this is the end

6
SHR/batchfiles/png.bat Executable file
View File

@ -0,0 +1,6 @@
@echo off
rem for ImageMagick version 6.9 use the following
rem set MAGICK=c:\IM\convert
rem for ImageMagick version 7 use the following
set MAGICK=c:\IM\magick
for %%f in (*.bmp) do call %MAGICK% %%f -define format:PNG %%~nf.png

263
SHR/batchfiles/slicer.bat Executable file
View File

@ -0,0 +1,263 @@
@echo off
REM slicer.bat - use ImageMagick to produce External Segment Palette Files for A2B
REM set path to ImageMagick below
REM for ImageMagick version 6.9 use ImageMagick's convert utility
REM set MAGICK=C:\IM\convert
REM for ImageMagick version 7 use the following
set MAGICK=C:\IM\magick
REM create directory structure for 16 color image segments
if not exist sh0pcx\*.* mkdir sh0pcx >NUL
REM if not exist sh1pcx\*.* mkdir sh1pcx >NUL
if not exist sh2pcx\*.* mkdir sh2pcx >NUL
if not exist sh3pcx\*.* mkdir sh3pcx >NUL
REM segment directories are of the same basename as the bmp being converted
REM the segments themselves are 0.pcx 1.pcx, 2.pcx, etc.
for %%f in (*.bmp) do if not exist sh0pcx\%%~nf mkdir sh0pcx\%%~nf >NUL
REM for %%f in (*.bmp) do if not exist sh1pcx\%%~nf mkdir sh1pcx\%%~nf >NUL
for %%f in (*.bmp) do if not exist sh2pcx\%%~nf mkdir sh2pcx\%%~nf >NUL
for %%f in (*.bmp) do if not exist sh3pcx\%%~nf mkdir sh3pcx\%%~nf >NUL
goto BEGIN
REM 8-segments for multi-palette for motion video
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x25+0+175 -dither FloydSteinberg -colors 16 -define format:PCX sh1pcx\%%~nf\0.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x25+0+150 -dither FloydSteinberg -colors 16 -define format:PCX sh1pcx\%%~nf\1.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x25+0+125 -dither FloydSteinberg -colors 16 -define format:PCX sh1pcx\%%~nf\2.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x25+0+100 -dither FloydSteinberg -colors 16 -define format:PCX sh1pcx\%%~nf\3.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x25+0+75 -dither FloydSteinberg -colors 16 -define format:PCX sh1pcx\%%~nf\4.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x25+0+50 -dither FloydSteinberg -colors 16 -define format:PCX sh1pcx\%%~nf\5.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x25+0+25 -dither FloydSteinberg -colors 16 -define format:PCX sh1pcx\%%~nf\6.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x25+0+0 -dither FloydSteinberg -colors 16 -define format:PCX sh1pcx\%%~nf\7.pcx
:BEGIN
REM use the same segments currently used in A2B
REM 1-segment for single palette SHR
for %%f in (*.bmp) do call %MAGICK% %%f -dither FloydSteinberg -colors 16 -define format:PCX sh0pcx\%%~nf\0.pcx
REM 16-segments for multi-palette
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x13+0+187 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx\%%~nf\0.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x12+0+175 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx\%%~nf\1.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x13+0+162 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx\%%~nf\2.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x12+0+150 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx\%%~nf\3.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x13+0+137 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx\%%~nf\4.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x12+0+125 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx\%%~nf\5.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x13+0+112 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx\%%~nf\6.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x12+0+100 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx\%%~nf\7.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x13+0+87 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx\%%~nf\8.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x12+0+75 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx\%%~nf\9.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x13+0+62 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx\%%~nf\10.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x12+0+50 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx\%%~nf\11.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x13+0+37 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx\%%~nf\12.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x12+0+25 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx\%%~nf\13.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x13+0+12 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx\%%~nf\14.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x12+0+0 -dither FloydSteinberg -colors 16 -define format:PCX sh2pcx\%%~nf\15.pcx
REM 200-segments for brooks
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+199 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\0.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+198 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\1.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+197 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\2.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+196 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\3.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+195 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\4.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+194 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\5.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+193 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\6.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+192 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\7.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+191 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\8.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+190 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\9.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+189 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\10.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+188 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\11.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+187 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\12.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+186 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\13.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+185 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\14.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+184 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\15.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+183 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\16.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+182 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\17.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+181 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\18.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+180 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\19.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+179 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\20.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+178 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\21.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+177 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\22.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+176 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\23.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+175 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\24.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+174 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\25.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+173 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\26.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+172 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\27.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+171 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\28.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+170 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\29.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+169 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\30.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+168 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\31.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+167 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\32.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+166 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\33.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+165 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\34.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+164 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\35.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+163 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\36.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+162 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\37.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+161 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\38.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+160 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\39.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+159 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\40.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+158 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\41.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+157 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\42.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+156 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\43.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+155 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\44.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+154 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\45.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+153 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\46.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+152 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\47.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+151 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\48.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+150 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\49.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+149 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\50.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+148 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\51.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+147 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\52.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+146 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\53.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+145 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\54.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+144 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\55.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+143 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\56.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+142 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\57.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+141 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\58.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+140 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\59.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+139 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\60.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+138 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\61.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+137 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\62.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+136 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\63.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+135 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\64.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+134 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\65.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+133 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\66.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+132 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\67.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+131 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\68.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+130 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\69.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+129 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\70.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+128 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\71.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+127 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\72.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+126 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\73.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+125 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\74.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+124 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\75.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+123 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\76.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+122 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\77.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+121 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\78.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+120 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\79.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+119 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\80.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+118 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\81.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+117 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\82.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+116 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\83.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+115 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\84.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+114 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\85.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+113 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\86.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+112 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\87.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+111 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\88.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+110 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\89.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+109 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\90.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+108 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\91.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+107 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\92.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+106 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\93.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+105 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\94.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+104 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\95.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+103 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\96.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+102 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\97.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+101 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\98.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+100 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\99.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+99 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\100.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+98 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\101.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+97 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\102.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+96 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\103.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+95 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\104.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+94 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\105.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+93 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\106.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+92 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\107.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+91 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\108.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+90 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\109.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+89 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\110.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+88 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\111.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+87 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\112.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+86 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\113.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+85 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\114.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+84 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\115.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+83 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\116.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+82 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\117.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+81 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\118.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+80 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\119.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+79 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\120.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+78 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\121.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+77 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\122.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+76 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\123.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+75 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\124.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+74 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\125.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+73 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\126.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+72 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\127.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+71 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\128.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+70 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\129.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+69 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\130.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+68 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\131.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+67 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\132.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+66 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\133.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+65 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\134.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+64 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\135.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+63 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\136.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+62 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\137.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+61 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\138.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+60 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\139.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+59 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\140.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+58 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\141.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+57 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\142.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+56 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\143.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+55 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\144.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+54 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\145.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+53 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\146.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+52 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\147.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+51 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\148.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+50 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\149.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+49 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\150.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+48 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\151.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+47 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\152.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+46 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\153.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+45 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\154.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+44 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\155.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+43 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\156.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+42 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\157.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+41 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\158.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+40 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\159.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+39 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\160.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+38 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\161.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+37 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\162.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+36 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\163.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+35 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\164.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+34 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\165.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+33 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\166.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+32 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\167.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+31 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\168.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+30 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\169.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+29 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\170.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+28 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\171.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+27 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\172.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+26 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\173.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+25 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\174.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+24 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\175.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+23 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\176.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+22 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\177.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+21 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\178.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+20 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\179.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+19 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\180.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+18 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\181.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+17 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\182.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+16 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\183.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+15 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\184.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+14 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\185.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+13 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\186.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+12 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\187.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+11 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\188.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+10 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\189.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+9 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\190.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+8 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\191.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+7 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\192.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+6 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\193.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+5 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\194.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+4 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\195.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+3 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\196.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+2 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\197.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+1 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\198.pcx
for %%f in (*.bmp) do call %MAGICK% %%f -crop 320x1+0+0 -dither FloydSteinberg -colors 16 -define format:PCX sh3pcx\%%~nf\199.pcx
REM this is the end

84
SHR/scripts/aspect43.sh Executable file
View 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

57
SHR/scripts/cvt.sh Executable file
View File

@ -0,0 +1,57 @@
#!/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
SHR/scripts/cvt2bmp.sh Executable file
View 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

11
SHR/scripts/kill.sh Executable file
View File

@ -0,0 +1,11 @@
#!/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

39
SHR/scripts/killpalette.sh Executable file
View File

@ -0,0 +1,39 @@
#!/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

170
SHR/scripts/magall.sh Executable file
View File

@ -0,0 +1,170 @@
#!/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

84
SHR/scripts/pad43.sh Executable file
View 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

309
SHR/scripts/slicer.sh Executable file
View 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