|Tested On:||Arch Linux; Kubuntu Karmic|
|License:||GNU GPL v3 * SEE DISCLAIMER *|
To create a website in ~/mywebsite from pics in the folder ~/mypics:
webpics ~/mypics ~/mywebsite
The website created in ~/mywebsite can be a stand-alone website, or it can be a subfolder of a larger website. The ~/mywebsite folder will be created if it doesn’t exist.
Follow the standard Script Installation Instructions. Alternatively, for Debian and Ubuntu a deb package and a PPA repository are available. On Arch Linux, webpics can be installed automatically using the AUR.
Before running webpics, install required packages using your package manager. For example, on Debian/Ubuntu:
apt-get install imagemagick jhead
NOTE: webpics is an unusual script in that it contains binary data at the end. This data is used to create the image files for buttons on the website. If you edit the webpics script, you must use an editor which won’t corrupt this binary data when you save the script. Alternatively, you can remove the binary data from the end of the script and copy the button image files to the same folder as the script. Or, you can download the tarball (check signature) containing the script without binary data in it, and separate image files. In this case the PNG files should be copied to the same folder as the script.
The default size for resized images may be set in the user defaults section at the top of the script.
webpics will attempt to auto-rotate any of the original JPG files which need it. If you prefer it not do so, disable the jhead command in the script by placing a “#” at the beginning of the appropriate line.