Quick And Dirty Web-Slides
Today's quick and dirty hack is about putting your presentation on-line as a list of images so that anyone can quickly see it without downloading the PDF.
First, be sure you start from something “clean”:
rm -fr slides/ mkdir -p slides/Then, use ImageMagick to convert your slides into images:
convert -density 200 Presentation.pdf \
-resize 500x -quality 80 +adjoin slides/slide.png
It creates numbered files slide-0.png, … slide-42.png. So we just create an HTML file containing all the images: nb=`\ls -1 --color=none slides/*.png | wc -l`
echo "<html><body>" > slides/index.html
for i in `seq 0 $[$nb - 1]` ; do
echo "<img src=\"slide-$i.png\" />" >> slides/index.html
done
echo "</body></html>" >> slides/index.html
Here is an example (my latest talk): PDF, HTML/PNG. Adding the verbose DOCTYPE stuff is left as exercise … ;)
Sebastien Mondet
Menu:
Site generated thanks to bracetax, camlmix, sebib, and more …
Updated on Sat, 10 Dec 2011 12:46:34 -0500.
Sebastien Mondet
Updated on Sat, 10 Dec 2011 12:46:34 -0500.
Sebastien Mondet