Last change: The Warning!First of all PLEASE MAKE SURE YOU HAVE BACKED UP YOUR PRECIOUS IMAGES before you even attempt to do anything with this script. I will NOT be held responsible for any errors on your or my own behalf that wastes your entire collection of images be they of your family holidays or nekkid lejdis. It is not my problem. You use this script completely at your own mortal risk. Understood? Latest newsThe 1.0 version of Albatross is about to be released into the public domain. Until then the developing versions can be downloaded from here. Any ideas of improvement et cetera is greatly appreciated. Please mail them to ichi@ichimusai.org Last upload pre-release version was PRE-RELEASE Older versions Change notesChange notes will be kept for about three levels of developer releases - no more. 0.25.0 ---> 0.26.0Several smaller bugfixes have been made as usual of course. Captions support for directories have been implemented. 0.24 ---> 0.25Next and previous is now fixed. The behaviour is that they also wrap. If you have pictures 1.jpg 2.jpg 3.jpg in a directory and run albatross they will to what you expect plus that the previous picture from 1 will be 3 and the next from 3 will be 1. A few small other things that have to do with layouts and stuff has also been fixed. Issue with space in filenames was discovered and this issue has been noted. This will be fixed at a later stage. 0.23 --->0.24Added some more switches to it. As you can see some of the switches are marked with red, those are not yet implemented or verified okay. The script now sorts sub-folders in alphanumerical order instead of creation date (the way find finds things). The sub-folders are presented as a table now. Numerous small improvements added. Known issuesThese are things that will be fixed shortly as bug reports are being recognized.
Todo list - for futureThis is the todo-list, entries will be added as they appear in my head. Regard this as a kind of road map though things are not listed in a particular order. Some of these things will come at a later major release. Some of them will be implemented in the next minor release.
Get the toolsYou can find the ImageMagic distribution over here where you may download the necessary tool "convert" in order to generate thumbnails and medium res. images. You will find the jhead over here this is necessary for generating the EXIF information on each image. If possible, just chose binaries for your platform and stick them somewhere in your $PATH and everything should be fine!
This document complies with W3.org standards with regards to CSS and HTML4.0 Transitional Document Type Definitions.
(C)2006 Ichimusai Albatross is here for everyone and is offered as a utility that I retain the copyright on but anyone is free to use for both commercial and non-commercial purposes. This code is hearby placed in the public domain under the condition that my name, email address and web page address are included in deravative works, documentation and so on. Apart from that have as much fun as possible with it. |
Web Photo Album GeneratorKeywords: bash, script, album, generate, command line, photos, camera, digicam, dSLR, SLR, digital photography, web, http, html, cygwin, linux, windows, bsd, solaris, manual, instructions, help, development, roadmap, bug, bugs, change notes, latest news, warning The legal bitAlbatross is Copyright (c) 2005-2006 Anders "Ichimusai" Pettersson. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. IntroductionAlbatross is an album generator written completely in bash. It has been tested and will run on many different platforms, including Linux, BSD and even Microsoft Windows by way of the Cygwin package. Albatross relies on two command which are not standard in most GNU implementations. These commands are convert which is part of the ImageMagick package and then there is the jhead that will extract EXIF information from JPEG files. Albatross recognizes a number of files but is happies with JPEG files (.jpg .JPG .jpeg .JPEG et cetera) because most cameras use that kind of format and stores EXIF information int it. It makes it possible for us to extract this info from the picture and display it. The script also recognizes text captions and will typeset those with the images, both on the index page and on the individual page for each image. This makes it possible to give the image a name and a description the way you like it. Standard HTML, for making links et cetera can also be used in these captions. What does it look like? Well, you are welcome to browse the images over here, this i my test bed for the script. Let me know what you think about it. If you want to know more about known issues, roadmap, change notes and todolists, check the column to the left, this part of the web page is updated frequently as progress is being made... InstallationThe installation script that comes with Albatross should be good enough to get it installed on most systems. The script itself will default to installation in /usr/bin and that's really what you need. Convert and jhead should be already installed anywhere in the systems path. To get the necessary toolsImageMagick can be downloaded from this site. You really only need the convert application for this script so you might grab the proper binary and stick somewhere in your $PATH. JHead can be found over here. You may have to rustle this one through the compiler but there are binaries for most platforms around if you look. Running the scriptRunning the script is rather simple. Locate yourself in the topmost folder of your image tree and type the command albatross and press enter. The script will recurse through any sub-folders generating thumbnail pictures as well as medium sized resolution pictures. What you will get is an index.html which is the index file. The script will then create the subdirectory .albatross in each directory it traverses. This directory is used to store thumbnails, HTML files for the individual pictures and also the medium sized pictures. If you wish to clean out all the files that albatross have created you can run it with option --clean which will remove all these files. A word of caution - the script will over-write any pre-existing files. Also if the thumbnails and medium sized pictures already exists the script will not re-create them. However all structural files such as the HTML files will be recreated every time the script is ran. Default settingsAll default settings can be changed. They are located in the top part of the script and should be reasonably self explanatory. Be mindful of what you do when you change these since a small error can have a rather huge impact on the behaviour of the script. The default values have been chosen as pretty reasonable. Once you get comfortable with the script you may wish to tweak them into something that you like better yourself. By using command line options (listed below) you can tweak most of these settings temporarily. Some people also use the alias functionality of their shell, for example alias myalbum="albatross --mediumsize 600x600 --mediumquality 80 --thumbnailquality 60" This will create the "new command" called myalbum that will call albatross with the options listed above. This can be placed in one of the startup files for the shell so that the alias is always there when needed. Startup files may be .bashrc or something similar. CaptionsI know that everyone loves to write a short note on each of their pictures. No? Well, there is a rather simple way of doing this in albatross. The first thing you need to do is to rerun albatross with the switch --captions, that will create a file called captions.txt in every directory that albatross finds any pictures. This file has the following syntax <file name>:<short desc.>:<long desc.> When the captions file have been generated by the script it will look something like this: DSCN_0176.JPG:: The next step is to view your index in your normal browser, just open the file or navigate to the file on your web page as if you where casually viewing your latest pictures. Then use any text editor to edit this captions file. The captions file will be found in the same directory as the index file will be created. After editing it may now look like this: DSCN_0176.JPG:Mom & Dad:My mom and
dad at Acapulco As you can se certain special signs better be HTML-quoted such as ampersand & to not create any problem, although most characters won't. When the file has been edited you should re-run albatross again and it will put the short description on the index pages and as a headline on the medium size pages and it will put the long description under the picture on the medium sized pages. One cool thing is that you can give the entire directory a description by adding something like the following line: dir:Flowers:This album contains pictures of flowers that I like... The keyword here is dir when it picks up on this the description will be typeset on the index page rather than on the individual picture pages. Any picture you do not wish to comment on, just leave - or delete, the corresponding line in the captions.txt file as you wish. You can embed HTML links and other things in your descriptions to other pages if you like and many other features... Cleaing up after a messIf something does go wrong, please try and run the script again. First with the --clear optin and then as normal. Do you get any error messages? What about convert and jhead, are those installed properly in your $PATH? Locate the troubled directory and list all files in it, ls -al is usually good. If you find a ".albatross" folder or similar, delete it. Try running the script again, does it recover? If nothing else helps, please send me a description of the problem over email if you please. I might not give you a personal answer back but I promise I will take a look at whatever problem you found and see if I can fix that. Command line optionsHere are the command line options for albatross listed. One or several of those may be combined together to for a special layout of your web album. Options that are listed in red below have not yet been verified to work on all platforms. They will be maked black when they are verified to work. Miscellaneous commands
Commands that affect the dimensions and quality of images
Layout commands
Bug reportsI am aware of many bugs in the code already and will be fixing them when they become a priority, when I feel like it, have the time and so on. But you are welcome to send bug reports to my email if you wish, chances are you may have found something that is not listed on this page and that I don't know of. I try to update this page as often as possible, so if your bug is already listed here, don't email, sit tight and I'll fix it eventually. If you can not find it on this page, please send it here and I will take a look. If you can propose a fix for it, that would be smashing - I'd write, test and incorporate it into the official version and you'd get your name in it as a contributor. Thank you. |