Date:2010-08-28 02:37:28 (9 years 2 months ago)
Author:Werner Almesberger
Commit:daa45012a4091723a638412a2dc569b1f0d32f03
Message:Thumbnails of new and deleted sheets were grey, not green/red.

- scripts/gitsch2ppm: make placeholder for unchanged sheets taller
- scripts/gitsch2ppm: when making thumbnails, set the color after
processing $THUMB_OPTS, so that it isn't overridden.
Files: scripts/schhist2web (2 diffs)

Change Details

scripts/schhist2web
157157    exit 1
158158fi
159159
160ppmmake '#e0e0e0' 5 20 | pnmtopng >"$out"/unchanged.png
160ppmmake '#e0e0e0' 5 30 | pnmtopng >"$out"/unchanged.png
161161
162162index="$out/index.html"
163163{
...... 
210210    elif [ -f "$a" ]; then
211211        s="$s<TD>"
212212        pngdiff cat "$diff" -f -c 1,0,0 "$a" "$a" || exit
213        pngdiff shrink "$thumb" -f -c 1,0,0 $THUMB_OPTS "$fat_a" "$fat_a" \
213        pngdiff shrink "$thumb" -f $THUMB_OPTS -c 1,0,0 "$fat_a" "$fat_a" \
214214          || exit
215215    elif [ -f "$b" ]; then
216216        s="$s<TD>"
217217        pngdiff cat "$diff" -f -c 0,1,0 "$b" "$b" || exit
218        pngdiff shrink "$thumb" -f -c 0,1,0 $THUMB_OPTS "$fat_b" "$fat_b" \
218        pngdiff shrink "$thumb" -f $THUMB_OPTS -c 0,1,0 "$fat_b" "$fat_b" \
219219          || exit
220220    else
221221        s="$s<TD>"

Archive Download the corresponding diff file



interactive