| Home | Autoplay
CD-ROM photo album
|
How to create an autoplay CD photo albumI was putting some digital photos on a CD for my parents and thought "wouldn't it be nice if I could make the CD autoplay". On the face of it, it's easy. Set up an autorun.inf file pointing to a web page with some Javascript and away you go. Wrong! You can only "execute" an executable using autorun.inf. So, there must be another way. There is. Many companies will charge you upwards of £20 ($30) for a little program that will do exactly that. However, RockinFewl@whirlywiryweb.com has produced a little standalone .exe which weighs in at 37k which takes, on the command line, the name of the html file on the CD and launch it via IE (well - to be precise, the registered application, so it should work with IE and Netscape)... and it's free. You can get the zipped file from http://www.whirlywiryweb.com/q/shellexe.asp. My current Javascript routine needs all the image file names to be sequential with no gaps (so I tend not to edit the files). This is what you do...Create yourself a new subdirectory that will become the CD. Copy all the image files into it. Create a new file in the directory. Call it autorun.inf. Paste in the following two lines:
Now, you need preview.htm. My suggestion is something like this:
This file needs a bit of editing. My Kodak DC280 has image file names of the format DCP_nnnn.jpg. I look at the start and end numbers and edit the (red) 1156 and 1169 numbers in the code above to the start and end numbers in the sequence. Seeing as I was already in the hundreds when I started, the next bit was easy. I needed to pad the numeric bit of the filename to four digits. I simply did this with the blue bit of code above. The root of the image file name (in may case, DCP_ needs to be set accordingly). All you need then is the unzipped shellexe.exe from
RockinFewl's web site and three little gif files. I drew left You should be looking for a directory layout similar to the following screenshot:
I've got all the 100_xxxx image files, my autorun.inf, the three gif files and RockinFewls shellexe.exe. Burn this lot to the root of a new CD and off you go. Not good enough?I do intend writing a program which will take a directory full of photos and create all the necessary Javascript to do the job. That will allow non-sequential image files. Just don't rush me, OK?! |