]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/lib.sh
Generate thumbnails with appripriate gamma value
[can-benchmark.git] / gw-tests / lib.sh
index 70f013212c281b18e1a92455263fbb81d13132fe..1a490a1e35a1457b0fd5750be80ef45a3b56a001 100644 (file)
@@ -58,7 +58,7 @@ _plot() {
     echo 'set terminal pngcairo color enhanced size 750,525 font ",10" ;' \
        "$(< plot.gp)" | gnuplot > ${testname}$I.png
     mkdir -p thumb
     echo 'set terminal pngcairo color enhanced size 750,525 font ",10" ;' \
        "$(< plot.gp)" | gnuplot > ${testname}$I.png
     mkdir -p thumb
-    convert -size 150x105 -quality 90 -type Palette -depth 8 ${testname}$I.png thumb/${testname}$I.png
+    convert -resize 150x105 -gamma 0.5 -quality 90 -type Palette -depth 8 ${testname}$I.png thumb/${testname}$I.png
 #     echo 'set terminal pngcairo color enhanced size 150,105 font ",1";' \
 #      "$(< plot.gp)" | gnuplot > thumb/${testname}$I.png
 
 #     echo 'set terminal pngcairo color enhanced size 150,105 font ",1";' \
 #      "$(< plot.gp)" | gnuplot > thumb/${testname}$I.png