X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=povtex.sh;fp=povtex.sh;h=e4f3bf4710e896898f86beb5079a5829aaa1a3ea;hb=8924e4ac130cf78925491258e58feca5705bdaf1;hp=0000000000000000000000000000000000000000;hpb=923a1c77954f93d107b54c39da7ff63d4f5ffadd;p=vor.git diff --git a/povtex.sh b/povtex.sh new file mode 100755 index 0000000..e4f3bf4 --- /dev/null +++ b/povtex.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +output="$1" +tmpfile="$1.tmp.png" +shift +povray -D +A +UA -O- +FN $* 2>/dev/null > "$tmpfile" || sh -c "rm '$tmpfile'; false" +pngcrush -rem gAMA -rem cHRM -rem iCCP -rem sRGB "$tmpfile" "$output" || sh -c "rm '$tmpfile'; false" +rm "$tmpfile"