Building Image Galleries with Konqueror

November 9th, 2005 by Hal Stanton in

Did you know Konqueror has a handy little program to create photo galleries in a few quick steps? Here's how to use it.
Your rating: None Average: 3 (2 votes)

I have had a digital camera for a several years now. I take a lot of photos with it, but most of them seem to end up stored on CDs that sit on the shelf. This happens because it seems to take too long to build photo galleries with my desktop.

Many photo gallery programs are available, but they always seem to be inconvenient. First, they aren't included with most Linux distributions. Second, they have complicated setups and/or they require a lot of command-line work to build the galleries. Recently, I was looking in the menus of Konqueror, KDE's file manager and Web browser, and saw an entry in the Tools menu called "Create Image Gallery". One of the reasons I probably missed this entry earlier is it appears in the Tools menu only if you start Konqueror from the little house icon. If you open Konqueror from the K menu or from the globe icon on the bottom toolbar, once it opens, click the house icon on the Konqueror toolbar. When the new screen opens, you can find the "Create Image Gallery" on the Tools menu (see Figure 1). Alternatively, if you open Konqueror from the command line, the "Create Image Gallery" immediately is available on the Tools menu.

Figure 1. The Create Image Gallery Menu Item

In order to see what this magic tool might do, I created a new directory and copied some pictures to it. You can do this however you want. Working totally within Konqueror, for example, you can select the New Directory item on the Edit menu, name and create the directory folder and then drag the desired files to this directory. This usually is accomplished easier if you open two Konqueror windows. If you are a command-line user, mkdir and cp can be used to create the directory and copy the images.

Once you have all the pictures you want in the directory, click on Create Image Gallery in the Tools menu. There, you should see a box of options that let you set the style of your gallery. Included are options for images per line, font, colors and what descriptive information is to be included. You can specify a page title, for example, "Trip to New York". By clicking the Directories icon, you can specify the output file name--the default is images.html--whether to recurse any subdirectories, if the files are to be copied and if a comment file is to be used (see Figure 2).

Figure 2. More Options for Your New Gallery

I like the idea of the comment file but had some trouble finding documentation for it. The KDE.org site, though, explains how to use it. Create a text file with the name you're going to use in the "Comments File" field. Each thumbnail should have the comment underneath the file name:

FILE1:
comment1

FILE2:
comment2

FILE3:
comment3

The order of the filenames is not important, but make sure you spell them correctly. The comment can be any length, the page will stretch or shrink the line to fit it. Each time you change the file, you have to re-run the Create Image Gallery command, remembering to check the Use Comment File box that appears when you click on the Directories icon.

Once you have selected the options you want, simply click the OK button, and your gallery will be created and displayed. It is as easy as that. If you aren't happy with the results, modify the options and click OK again.

Copyright (c) 2004, Hal Stanton. Originally published in Linux Gazette issue 98. Copyright (c) 2004, Specialized Systems Consultants, Inc.

Hal Stanton was a Windows user for too many years. Now he honestly can say that Linux is a lot more fun.

__________________________


Special Magazine Offer -- Free Gift with Subscription
Receive a free digital copy of Linux Journal's System Administration Special Edition as well as instant online access to current and past issues. CLICK HERE for offer

Linux Journal: delivering readers the advice and inspiration they need to get the most out of their Linux systems since 1994.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
bzitt's picture

Update to comments file format

On October 5th, 2006 bzitt (not verified) says:

I have been experimenting with the Image Gallery tool, and found the comments file to be a great addition. In trying to get it work, I found that you need to put a blank line between the comment and the next file name:

FILE1:
comment1

FILE2:
comment2

FILE3:
comment3

Hope that helps somebody.

Serg's picture

Image Gallery

On June 7th, 2006 Serg (not verified) says:

Many do not know about existence of such function.
It really simplifies creation Image Gallery.
Thanks Hall.

Miguel Guhlin's picture

JAlbum

On November 10th, 2005 Miguel Guhlin (not verified) says:

Howdy! Thanks for sharing this tip. However, a simple cross-platform tool you can use that does an awesome job--including templates for photo albums--is JAlbum. You can get it online at www.jalbum.net

Best wishes,
Miguel Guhlin
http://www.mguhlin.net/blog

Azi's picture

nicee

On November 11th, 2005 Azi (not verified) says:

Verrrry nice !

Btw, can you tell me the name of your Green Kde theme ? It's very lovely !

Anonymous's picture

that's the SUSE theme, as

On November 15th, 2005 Anonymous (not verified) says:

that's the SUSE theme, as you can recognize from the "Geeko"

Post new comment

Please note that comments may not appear immediately, so there is no need to repost your comment.
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <pre> <ul> <ol> <li> <dl> <dt> <dd> <i> <b>
  • Lines and paragraphs break automatically.

More information about formatting options

Newsletter

Each week Linux Journal editors will tell you what's hot in the world of Linux. You will receive late breaking news, technical tips and tricks, and links to in-depth stories featured on www.linuxjournal.com.
Sign up for our Email Newsletter

Tech Tip Videos

From the Magazine

July 2009, #183

News Flash: Linux Kernel 3.0 to include an on-the-go Expresso machine interface! Ok, maybe not, but Linux is definitely going mobile, from phones to e-readers. Find out more inside about Android, the Kindle 2, the Western Digital MyBook II, The Bug, and Indamixx (a portable recording studio). And if you've gone mobile and you been wanting more Emacs in your life then check out Conkeror.


To compliment the mobile we've got the stationary: parsing command line options with getopt, checking your Ruby code with metric_fu, and building a secure Squid proxy. How is this stationary you ask? What can we say? It's not. We just wanted to see if anybody actually read this part of the page :) .


All this and more, and all you have to do is get your hot sweaty hands on the latest copy of Linux Journal.





Read this issue