]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
Faster image conversion
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 1 Sep 2009 08:32:12 +0000 (10:32 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 1 Sep 2009 08:34:27 +0000 (10:34 +0200)
tests/_lib.sh

index 13916b811600568f5666e240181943b657a196a7..ccedc8cd4476748ad90b75f606349a5c47622d64 100644 (file)
@@ -116,8 +116,8 @@ plot() {
        echo "set terminal postscript color eps enhanced;
              ${cmd}" | gnuplot | epstopdf --filter > `basename $0 .sh`$I.pdf
        mkdir -p thumb
-       convert -geometry 1000x100 -gamma 0.3 -quality 90 -type Palette -depth 8 `basename $0 .sh`$I.pdf thumb/`basename $0 .sh`$I.png
-       convert -density 200 -gamma 0.7 -geometry 1000x500 -quality 90 -type Palette -depth 8 `basename $0 .sh`$I.pdf `basename $0 .sh`$I.png
+       convert -density 30  -gamma 0.5 -quality 90 -type Palette -depth 8 `basename $0 .sh`$I.pdf thumb/`basename $0 .sh`$I.png
+       convert -density 150 -gamma 0.7 -quality 90 -type Palette -depth 8 `basename $0 .sh`$I.pdf `basename $0 .sh`$I.png
     done
 }