Page 1 of 1

Batch image manipulation?

Posted: Fri Apr 27, 2007 2:03 pm
by n88tr
I have 147 thumbnail images at the size of 100x75 pixels and I want to add a 2 pixel colored border around the length and width of the thumbnails. I've been doing this for a few images in MS Paint but it will seriously take me like 6 hours to get this done if I do it that way. I heard XnView might be able to add borders on multiple images like this. Can it do this?

Thank you very much.

Re: Batch image manipulation?

Posted: Fri Apr 27, 2007 5:33 pm
by helmut
n88tr wrote:... I heard XnView might be able to add borders on multiple images like this. Can it do this?
You have heard right, XnView can do this.

Adding a border is a common batch conversion, here's the step by step description for adding a 2 pixel border using XnView 1.90:

1.) Select one or several files in the XnView browser
2.) Select "Tools > Batch Convert..."
3.) In the "Batch Convert" dialog, switch to tab "Transformation". There you will see two lists, on the left the list of available transformations, on the right the selected transformations. At first, the list of selected transformation is empty.
4.) Select transformation "Image > Canvas Resize", and add this transformation by pressing the "Add" button
5.) On the right side select the transformation "Canvas Resize". The process "Canvas Resize" has parameters which you can see on the bottom right. First, you check the checkbox "Use above values as size deltas". Then you enter 2 pixel as width and 2 pixels as height.
6.) Then you choose a colour for your border.
7.) Switch back to the tab "General".
8.) Specify the output directory for the converted files
9.) Choose the format for the converted files. The output file format may differ from the format of the original images. For example, you may wish to convert "jpg" to "gif" or "png".
10.) Confirm your choices in the "Batch convert" dialog with "Go".

XnView will convert all the selected files and save them in the output directory.

Notes:
- You can add multiple transformations at once. This can be used for resizing and adding a border at once. Or you could generate a border with 2 pixels white and 1 pixel black for example.

- There's a general description for batch conversion with some more tips, see topic How to Batch convert several images at once.