Code: Select all
#/bin/sh
convert rings_sm_orig.gif -colorspace RGB \
\( \
-clone 0 \
-filter Cosine \
-resize 101x \
-colorspace sRGB \
-set caption 'Cosine' \
\) \
\( \
-clone 0 \
-filter Lanczos \
-resize 101x \
-colorspace sRGB \
-set caption 'Lanczos' \
\) \
\( \
-clone 0 \
-define filter:window=Jinc -define filter:lobes=3 \
-resize 101x \
-colorspace sRGB \
-set caption 'Ginseng' \
\) \
\( \
-clone 0 \
-filter Lanczos -define filter:blur=.88549061701764 \
-distort Resize 101x \
-colorspace sRGB \
-set caption 'EWA Lanczos3Sharpest' \
\) \
\( \
-clone 0 \
-filter Lanczos -define filter:blur=.9264075766146068 \
-distort Resize 101x \
-colorspace sRGB \
-set caption 'EWA LanczosRadius3' \
\) \
\( \
-clone 0 \
-filter RobidouxSharp \
-distort Resize 101x \
-colorspace sRGB \
-set caption 'EWA RobidouxSharp' \
\) \
\( \
-clone 0 \
-filter Lanczos -define filter:blur=.9891028367558475 \
-distort Resize 101x \
-colorspace sRGB \
-set caption 'EWA LanczosSharp' \
\) \
\( \
-clone 0 \
-define filter:window=Quadratic \
-distort Resize 101x \
-colorspace sRGB \
-set caption 'EWA QuadraticJinc' \
\) \
\( \
-clone 0 \
-resize 101x \
-colorspace sRGB \
-set caption 'Mitchell' \
\) \
\( \
-clone 0 \
-distort Resize 101x \
-colorspace sRGB \
-set caption 'EWA Robidoux' \
\) \
\( \
-clone 0 \
-filter Triangle \
-distort Resize 101x \
-colorspace sRGB \
-set caption 'EWA Triangle' \
\) \
\( \
-clone 0 \
-filter Triangle \
-resize 101x \
-colorspace sRGB \
-set caption 'Triangle' \
\) \
\( \
-clone 0 \
-filter Quadratic \
-distort Resize 101x \
-colorspace sRGB \
-set caption 'EWA Quadratic' \
\) \
\( \
-clone 0 \
-filter Quadratic \
-resize 101x \
-colorspace sRGB \
-set caption 'Quadratic' \
\) \
\( \
-clone 0 \
-filter Spline \
-distort Resize 101x \
-colorspace sRGB \
-set caption 'EWA Spline' \
\) \
\( \
-clone 0 \
-filter Spline \
-resize 101x \
-colorspace sRGB \
-set caption 'Spline' \
\) \
-delete 0 \
miff:- \
| \
montage \
-label '%[caption]' \
- \
-geometry '130x130>+3+1' \
-tile x4 \
-background lightsteelblue \
-fill black \
-title 'Downsizing through linear RGB' \
-depth 8 \
nicolas_reduced_linear.png
pngcrush nicolas_reduced_linear.png temp.png
mv temp.png nicolas_reduced_linear.png