# Template Superimpose

Gilles
Caulier

    caulier dot gilles at free.fr

Gerhard
Kulzer

    gerhard at kulzer.net

The digiKam image plugin Template Superimpose is a masking tool to superimpose templates to an image.

KDE
Digikam

# Introduction

This tool allow to combine two images by superimposing them very easily. You can use this tool to reframe your photographs and the story they tell.

Existing images or artificially created graphics can be used as PNG template files containing borders, frames, gradients, and composite images that can be added to or superimposed on other images. Template files aren't installed along with the digiKam but can be found at this url. Download the content to the digiKam album database and set the Root Template Directory (see Using the Plugin section below).

The Image Template Superimpose Image Editor menu is used to apply templates to an image.

## To create new templates

New templates can be created using any paint program, and the template must be stored on disk. Colored areas in the image will become a mask that will later be superimposed on another selected image. PNG template files must be created in RGB mode with Alpha channel. The alpha channel represents transparent areas in the template that will not show in the superposition. The selected image upon which the template file is superimposed will appear in place of the transparent areas in the template.

There is no restriction on template size and orientation, but you must use PNG file format with max. compression (9) to reduce the template file size. If you want to add your template creation to the digiKam templates database, please send a mail to this digiKam mailing-list digikam-users@kde.org.

## Using the Plugin

If you're using the plugin for the first time, you must set your local templates directory using the Root Directory button in the dialog. Select the folder where you have copied the template files. The plugin remembers this setting at the next instance.

When the root template directory is set, a folder tree view is created which displays the template directories structure. Selecting one will update the templates preview bar automatically.

Below the preview area, three buttons give you control over the template zoom and position on your image:

Zoom In: this button increases the underlying image's zoom factor. The image is centered to the current mouse position. Validate with the left mouse button.

Zoom Out: this button decreases the zoom factor. The image is centered to the current mouse position. If you want to apply the template to the full image you have to zoom out fully. Validate with the left mouse button.

Move: use this button to pan the underlying image. Click and drag the image with the right mouse button.

Click on the OK button to apply the template to the current image, which in turn will be automatically resized to the preview size.

## The plugin in action

The Template Superimpose dialog tool in action is available below.

### The Template Superimpose Tool Dialog