List to images

I've put together something I've been meaning to make for a while: a little program that takes a folder of images (.eps and .png files, specifically) and turns them into a webpage and a LaTeX document. My MATLAB code spits out images, and it's always a faff to put them together into something coherent and useful.

This is implemented in C++ and bash, and requires some kind of linux with pdflatex installed.

Click here to download the zipped up code, or use wget:
wget http://bethmcmillan.com/geek/ListToImages.tar.gz

Then, to unpack the file, use:
tar -xvf ./ListToImages.tar.gz

Then use listtoimages.sh followed by the path to the folder of images to make the pages. For example, I used:

./listtoimages.sh /users/bethmc/Pictures/

This gave me several files called "output" inside the Pictures directory, including a html file that contained all of the png images, and a PDF containing all of the eps images (the tex file is also supplied).

Anyway. Back to work, all of you!

Edit: my "Pictures" folder is mostly full of photographs of potoos. THEY ARE HILARIOUS.

...

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.