Image manipulation with Fotoxx
Light and Shadow
![© sajola, photocase.com © sajola, photocase.com](/var/linux_magazin/storage/images/linux-magazine.com/issues/2008/94/light-and-shadow/pc_5stvcnfrn2n9_schatten-licht_sajola.png/429510-1-eng-US/pc_5stvcnfrn2n9_schatten-licht_sajola.png1_medium.png)
© sajola, photocase.com
The Fotoxx image manipulation program offers highlights such as HDR and panorama functions, but where there is light, there is also shadow.
The free image manipulation program Fotoxx provides the usual collection of functions for enhancing and editing digital photos, but also special tools for handling high-dynamic range (HDR) photos and panoramic images. Pre-built packages are available for a few distros, and the developer directs you to these; on the Fotoxx website, the programmer merely states, "I gave up," when confronted with the myriad packaging systems [1]. However, with just a couple of manual steps, you can install Fotoxx from the source code (see the "Installing Fotoxx" box).
When launched for the first time, Fotoxx comes up with a surprisingly plain interface – a large, empty space, framed by a horizontal icon bar for major file functions and a vertical bar for the program tools – which is very different from most popular GUIs.
Fotoxx is a good choice for an image viewer and as a way to keep track of your digital images. To see an overview of your photo collection in any folder, click Folder. With larger collections, Fotoxx freezes or responds slowly. Fotoxx also lacks some useful features, such as a slideshow or the ability to sort images by category. Users are left with the task of navigating individual images and then double-clicking an image to open it for editing (Figure 1).
Unfortunately, Fotoxx does not have a scrollbar, which is a nuisance if the images do not fit into the window. Your only options are to scale down the view or navigate the images row by row or page by page. Because Fotoxx seemingly reloads the images each time they move, your mileage may vary. This said, the image viewer is important to an intuitive workflow. It is also unfortunate that the Open button does not give users a preview – either you know the image's name, or you just guess.
Installing Fotoxx
First, download the Fotoxx tarball to a directory of your choice (->DVD), then launch a console and enter the following commands:
$ tar -xzf fotox.35.tar.gz $ cd fotox $ ./ubuild
If you need to fulfill some dependencies, the build script will complain about the missing components. Install whatever is missing and then repeat the ./ubuild command. After the build completes, the program is installed in /home/user/fotox by default.
The install sets up a desktop icon labeled fotox, which you can use to launch the program; however, it does not create a menu entry. When you launch Fotoxx for the first time, it creates a file with critical configuration data; you can modify the file later via the Param. menu. The configuration file itself, .fotox/parameters, is located in your home directory; to modify the configuration, use any editor.
Retouching and Enhancing
The icon bar on the left provides image editing tools. Most of them are self-explanatory – such as Crop, Redeye, Rotate – and open additional dialogs that show the most important parameters with a click of the mouse. The approach of opening sliders and previews in separate windows independent of the main program often forces users to toggle back and forth between windows to move whatever they need into the foreground.
In contrast, the program offers a good selection of calibration options. For example, you can set the brightness in adjust, using no fewer than nine sliders for the individual areas. The buttons next to the sliders support automation; for example, + - moves the sliders for dark regions up while lowering the sliders for the light regions. In contrast, - + - simply ups the mid-range values. Because there is no description of this function, you must rely on your own judgement.
For the most part, Fotoxx's quirky approach is annoying. For example, the Crop function drops the dialog right on top of the image, before you hold down the left mouse button and drag the mouse to select an area. The crop box is displayed automatically and can be resized – but not moved or redrawn – by dragging the mouse, an approach that is neither innovative nor intuitive. Examples of poor usability are found in almost any function. For example, to Rotate, you need to enter an angle. On top of this, the program lacks keyboard shortcuts of any kind.
HDR/DRI DIY
If this were all that Fotoxx had to offer, it would not be worth writing about. But thereare two special functions: HDR and panoramic images.
HDR images are characterized by the extremely dark dynamic range between the darkest and the lightest points. The human eye can detect up to 100,000 different gradients, whereas a digital camera can only handle about 1,000 contrast values. Normal displays do an even worse job, offering just 256 different scales. Genuine HDR is not currently available at consumer prices, and images that appear to be HDR photos are actually only images that approach this ideal with dynamic range increase (DRI).
DRI [2] is an approach that uses multiple exposures of the same image to create a single photo. Almost any modern digital camera can handle this – look for "Exposure Bracketing" in your user manual.
Creating DRI images manually is tricky because you need to copy the best contrast from each image and apply it to the new image. Fortunately, special applications provide an automated approach to this task.
In Fotoxx, press Open or select the first image in an exposure bracket in the Folder view and then press HDR to add a second image. Fotoxx then calculates how the contrasts in the images complement each other; depending on the resolution, this can take up to two minutes. Next, Fotoxx opens a window called HDR image weights, in which you can use the sliders or buttons to set the ratio between the original and added image. To apply the settings, press Apply, and then repeat the steps with the remaining images in the exposure bracket. When you are done, you will see an image that is more intense than the real thing (Figures 2 and 3).
Judging from the results, Fotoxx does a decent job of creating DRI images, but what Fotoxx actually does with the images is the developers' secret. Superimposing images is just half of the story. The other half is called tone mapping [3] – the compression of oversized dynamic ranges in the output images to allow a monitor to display them or a printer to create a hard copy. Programs such as the GIMP exposure-blend plugin [4] have separate tools for this that let the user view these settings. Fotoxx does without this completely.
Panorama
Of course, other programs are custom designed for creating broadband panoramic images, including Hugin [5]. Despite this, Fotoxx offers a function that works in a way similar to the HDR tool. First, select an image as the basis for the panoramic photo, then click Pano. to add more photos to the original (see Figure 4). To allow for seamless final results, you can also set stitching parameters.
To start, hold down the left mouse button and roughly move the image you added toward the original image. If you need to rotate the second image relative to the original, just grab its right border. Or you can use the arrow keys to move the image you are adding to the correct position millimeter by millimeter. Now set the value for Lens mm and Lens bow to stitch the two images in the best possible way. Lens mm is for the focal length, and Lens bow is for barrel or pincushion distortion.
Pressing Find tells the program to automatically find the best distortion values. Then you can press Next to stitch the images. The image flashes momentarily at the join, and you can mix and match hues and brightness values. When you are done, press Apply and Finish to complete the stitching, then repeat this process with the other parts of the panorama. Stitching individual images is a function that works well, and the results are more than usable; however, it makes sense to select Crop to tidy up the edges.
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
![Learn More](https://www.linux-magazine.com/var/linux_magazin/storage/images/media/linux-magazine-eng-us/images/misc/learn-more/834592-1-eng-US/Learn-More_medium.png)
News
-
NVIDIA Released Driver for Upcoming NVIDIA 560 GPU for Linux
Not only has NVIDIA released the driver for its upcoming CPU series, it's the first release that defaults to using open-source GPU kernel modules.
-
OpenMandriva Lx 24.07 Released
If you’re into rolling release Linux distributions, OpenMandriva ROME has a new snapshot with a new kernel.
-
Kernel 6.10 Available for General Usage
Linus Torvalds has released the 6.10 kernel and it includes significant performance increases for Intel Core hybrid systems and more.
-
TUXEDO Computers Releases InfinityBook Pro 14 Gen9 Laptop
Sporting either AMD or Intel CPUs, the TUXEDO InfinityBook Pro 14 is an extremely compact, lightweight, sturdy powerhouse.
-
Google Extends Support for Linux Kernels Used for Android
Because the LTS Linux kernel releases are so important to Android, Google has decided to extend the support period beyond that offered by the kernel development team.
-
Linux Mint 22 Stable Delayed
If you're anxious about getting your hands on the stable release of Linux Mint 22, it looks as if you're going to have to wait a bit longer.
-
Nitrux 3.5.1 Available for Install
The latest version of the immutable, systemd-free distribution includes an updated kernel and NVIDIA driver.
-
Debian 12.6 Released with Plenty of Bug Fixes and Updates
The sixth update to Debian "Bookworm" is all about security mitigations and making adjustments for some "serious problems."
-
Canonical Offers 12-Year LTS for Open Source Docker Images
Canonical is expanding its LTS offering to reach beyond the DEB packages with a new distro-less Docker image.
-
Plasma Desktop 6.1 Released with Several Enhancements
If you're a fan of Plasma Desktop, you should be excited about this new point release.