Tag Archives: photo

iimage: Index your images

A long time ago we looked at album, which ran down a directory of images and created a clickable album as an HTML page. Here’s one that does much the same thing: iimage.

2014-11-06-2sjx281-iimage-01 2014-11-06-2sjx281-iimage-02

iimage is just a bash script that relies on imagemagick‘s convert to create thumbnails, and adds the remaining touches to a folder called .tmp. It does not alter or move your original files, but all my attempts (and the instructions) suggest you have to call the script from the folder where your images lie. Let me know if you find a way around that.

iimage’s output page is very clean and modest, so if you’re looking for something a little more outlandish, you might have some HTML editing in your future. iimage is nothing if not exceptionally neat, with all its product files arranged and ordered. I like that a lot.

Judging by the help flags, iimage can recurse through folders, but I didn’t try that, so I don’t know if recursed directories produce linked pages in the final product. iimage can also update files it has created previously, so you should be able to simply add or remove images to the folder, and generate fresh files without rebuilding everything from scratch.

iimage also will apparently generate an AUTORUN.INF file, which I believe would trigger a full desktop environment to open the index, if you were to burn all of this to a CD and spin it up. I might be wrong on that, but it’s an excellent addition if it’s true.

I see that the date on the most recent version is 2009, but I had no problems aside from dropping the script into the right folder to get everything built. I don’t expect there will be many inconsistencies or technical issues, at least until imagemagick or one of the underlying programs shifts gears.

iimage is apparently not in either Arch/AUR or Debian, which is a shame. But perhaps you can say you got something new from K.Mandla today. … 😉

caca: Tools for greater things

It’s been about a month since I mentioned the aa libraries, and the nifty aafire as a possible screensaver option.

Of course, what aa does for monochrome graphics, the caca libraries do for color.

Install the libraries and depending on your distribution, you’ll get a few nifty tools that do quite a bit.

2013-02-22-l3-e7548-cacademo-01 2013-02-22-l3-e7548-cacademo-02 2013-02-22-l3-e7548-cacaview 2013-02-22-solo-2150-cacaview 2013-02-22-l3-e7548-cacafire

Speaking for Arch Linux, the cacademo gives a nifty animated showcase, a la some of the scene demos from the late 80s and early 90s. That you can see in the two leftmost screenshots.

The third and fourth are cacaview, which works as an image viewer for the console: Feed it an image, and it will convert it to a colorized ASCII version. There are some rudimentary controls to adjust gamma or dithering, if it makes a difference for you.

The last one is cacafire, the obvious analogue to the aforementioned aafire.

Only one of those screenshots comes from the Solo; as you might imagine, caca is very taxing on video systems, and running the demo, for example, hung the system for a good 30 seconds before I could kill it.

Before this is done, there’s one more thing I should mention.

One thing I didn’t show here is img2txt, which is basically the underpinning for cacaview. Give it an image, it gives you back a chunky text version.

img2txt was the core component in the MyPhotos script from late 2010. Not my finest hour, but it has held up over time.

Which is kind of the way most of these things work: They’re just silly tools until you can apply them to something greater. 🙂

album: Pictures in a show

Into the gray area again, where the application of the day is … maybe … not really an application … so much as a script that does something smart, and you have the results to enjoy.

I’ve run into things like this more than once — boxinfo.pl was a good example, or maybe NoPriv.py.

This is album. At this point you can probably guess what it does.

2013-02-18-solo-2150-album-01

Yep, makes a navigable photo album for you from the contents of a directory.

While it works, there’s little that you need to do other than some simple one-time setup. There’s little to see too. When it’s done, you open the index.html file in your browser, and scope the contents.

2013-02-18-solo-2150-album-02

Of course, in a text-only environment, you might need to whack at the results a little to actually view your photos. I think this is where I would suggest wiring elinks’s file type preferences to fbv or another framebuffer image viewer.

Or you could just bite the bullet and open it in a graphical environment. Voila.

2013-02-18-l3-e7548-album-03

There are a boatload of options available with album — everything from themes to thumbnail size to page dimensions can be adjusted from the command line.

Like I said, it’s not really an application, but I am sure for some people this will be a fantastic asset — particularly if you have images to display on a web page. 😯

Ah, now the beauty of it becomes obvious, no … ? 🙂