Skip to content

Commit

Permalink
Fix rendering script
Browse files Browse the repository at this point in the history
  • Loading branch information
bjodah committed Sep 14, 2017
1 parent 274cd01 commit 10653c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 75 deletions.
74 changes: 0 additions & 74 deletions scripts/rasterize.js

This file was deleted.

Binary file added scripts/rasterize.js.bz2
Binary file not shown.
4 changes: 3 additions & 1 deletion scripts/render_index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
mkdir -p thumbs
tmpdir=$(mktemp -d)
trap "rm -r $tmpdir" INT TERM EXIT
SCRIPTS_PATH=$(unset CDPATH && cd "$(dirname "$0")" && echo $PWD)
bzcat $SCRIPTS_PATH/rasterize.js.bz2 >$SCRIPTS_PATH/rasterize.js
cat <<EOF>index.html
<!DOCTYPE html>
<html>
Expand All @@ -23,7 +25,7 @@ for f in $@; do
continue # don't include bokeh apps
fi
img=$(basename $f .html).png
QT_QPA_PLATFORM=offscreen phantomjs $(unset CDPATH && cd "$(dirname "$0")" && echo $PWD)/rasterize.js $f $tmpdir/$img 1200px*900px
phantomjs $SCRIPTS_PATH/rasterize.js $f $tmpdir/$img 1200px*900px
convert $tmpdir/$img -resize 400x300 thumbs/$img
cat <<EOF>>index.html
<p style='text-align: center'>
Expand Down

0 comments on commit 10653c6

Please sign in to comment.