# Examples

## I don’t want to preserve folder hierarchy when exporting.

Add and check the `Remove Folder Structure` action if not already (`Add Action... → Remove Folder Structure`).

## How do I rename the images to form a sequence of numbers, e.g. “image001”, “image002”, …?

Click on the text entry next to `Filename` and choose `image001`, or type `image[001]` in the entry.

## I want to apply blurring to the image. Can this be done?

Absolutely! In fact, you may apply any GIMP filter or plug-in:

1. Select `Add Action... → Add Custom Action...`
2. In the action browser, type `blur` in the search bar and select one of the filters, such as `Gaussian Blur`.
3. Adjust the options as desired.
4. Select `Add` to add the action.

## How can I insert watermarks?

You can think of watermarks as foreground, i.e. a layer added on top of your images.

For Batch Convert and Export Images:

1. Add the `Insert Foreground` action and specify an image file serving as the foreground.
2. (optional) You can adjust how the foreground is merged by setting the merge type in the `Merge Foreground` action that was added automatically.

For Export Layers and Edit Layers:

1. In GIMP, assign a color tag to the layer(s) you want to consider foreground (right-click on a layer → `Color Tags` → choose your color).
2. Add the `Insert Foreground` action and adjust the color tag as necessary.
3. (optional) For Export Layers, if you want the foreground to be offset to the current layer rather than the image canvas, place this action after `Resize to layer size` by dragging it onto `Resize to layer size`.
4. (optional) You can adjust how the foreground is merged by setting the merge type in the `Merge Foreground` action that was added automatically.
5. (optional) You can further adjust the watermark via subsequent actions (e.g. `Rotate`). Instead of `Current Layer` (if available), use `Layer Above (Foreground)`.

## I need every image to have the same background.

You can follow the same steps as in the example above, except that you add the `Insert Background` action (and adjust `Merge Background` as needed).

## How can I add borders to an image?

1. Add the `Resize Canvas` action.
2. Set `How to resize` to `Resize from edges (add borders)` if not already.
3. Adjust the `Amount` (border thickness).
4. If you want the border to have a particular color, check `Fill added space with color` and adjust `Color for added space` as desired.

## I want to create a single multipage PDF file.

While multipage PDF export is already possible in GIMP without any third-party plug-ins, Batcher allows you to apply custom actions before the export or export each folder/group layer as separate PDFs.

1. Select or type `pdf` as the file extension.
2. Press the `Options...` button and select an option in `Perform export:`. To export a single image, select `As a single image`.
3. If you selected `As a single image`, adjust `Image filename pattern` as seen fit.
4. For Export Layers, you may want to uncheck the `Resize to layer size` action to use the image size (since PDF pages have the same dimensions), otherwise you might obtain unexpected results.

## I want to be able to export to multiple file formats at once.

You can achieve this by adding the `Also Export As...` (or `Export`) action.

Each time you add this action, adjust the file extension, file format options and other settings as needed.

## I want to apply action(s) on image files (such as scaling), but I also want to export them using their original file format.

1. Press the `Options...` button and check `Use original file extension`.
2. Add and adjust your desired actions.

## I want to export all layers using the image size, not the layer size.

Uncheck the `Resize to layer size` action if it exists.

## I want to export only visible layers.

Check the `Visible` condition (or add one if not already via `Add Condition... → Visible`).

## I want to export only visible layers. However, I also want to exclude those that have invisible parent group layers.

1. Check the `Visible` condition (or add one if not already).
2. Edit the `Visible` condition (press the icon to the right of the condition name). In the dialog, click on `More options` and then check `Also apply to parent folders`.

## My layers contain a ‘.’. All characters after the ‘.’ are replaced with the file extension. How do I prevent this?

In the text entry next to `Filename`, choose `Full layer name` or type `[layer name, %e]`. This ensures that the resulting image name will be e.g. `some.layer.png` instead of `some.png` (the default behavior).

## How do I export only group layers at the top level?

1. Uncheck the `Layers` condition.
2. Add the `Group Layers` condition.
3. Add the `Top-Level` condition.

## How do I reverse the order of the exported images/layers?

In the text entry next to `Filename`, you can type e.g. `image[000, %d]`. This results in the exported image/layer names having a descending number.