Creating loco images
Documentation

LoDi-Con manual

Creating loco images

Introduction

The LoDi-Con lets you bring in your own locomotive images in JPEG and PNG format. They may be up to 190 × 48 pixels in size. In the case of PNG a transparent background is even allowed. The guide below describes how to produce your own locomotive images.

GIMP

Producing locomotive images is explained using GIMP. This capable free graphics program runs on Windows, Linux and macOS and can be downloaded freely at https://www.gimp.org/downloads/.

Other similarly capable programs can be used to produce locomotive images as well.

lodi-con-15-lok-bilder-01-721dc8.png

What the image has to meet

The locomotive image can be taken with any phone camera. What matters is good lighting without shadows or highlights, and a sharp picture. Beyond that, keep an eye on the horizontal alignment — although that can also be corrected in GIMP afterwards.

A white background, or one that contrasts as strongly as possible with the colour of the locomotive, is recommended. For larger collections, building a light box with a fixed camera mount makes sense.

Picture from the phone camera (roughly cropped)
Picture from the phone camera (roughly cropped)
lodi-con-15-lok-bilder-03-68d66a.png

Editing steps

Horizontal alignment

After opening the image in GIMP it should first be aligned horizontally. To do that, add a horizontal guide at the height of the track: ImageGuidesNew Guide … . You can read the approximate position off the ruler on the left.

lodi-con-15-lok-bilder-04-0b5fc5.png

Then choose the menu entry ImageTransformArbitrary Rotation … and correct the alignment of the image against the guide and the track.

lodi-con-15-lok-bilder-05-4e2224.png
lodi-con-15-lok-bilder-06-63dd75.png

Removing the background

This step is optional. It is not needed for producing JPEG images.

First an alpha channel has to be added to the image if it does not have one yet; it holds the transparency information. Choose LayerTransparencyAdd Alpha Channel. If the entry is greyed out, the alpha channel is already there.

Then choose the fuzzy select tool from the toolbox.

lodi-con-15-lok-bilder-07-05583a.png

Set the tool up as follows:

lodi-con-15-lok-bilder-08-8dcf55.png

Then click the background. The area to be deleted is outlined.

lodi-con-15-lok-bilder-09-01cbb1.png

Now press the Del key. The selected area is deleted and replaced by transparency.

lodi-con-15-lok-bilder-10-1cf11a.png

Repeat this for every other area of background. Take care that no white edges are left over, and experiment with the threshold of the fuzzy select tool.

lodi-con-15-lok-bilder-11-52d56d.png
lodi-con-15-lok-bilder-12-6968a6.png

Increasing the contrast

The next step raises the contrast of the image, for the best possible result on the display. Choose the ColorsLevels dialog for this.

In the dialog, move the arrows in the input levels area so that they cover only the colour range actually used.

lodi-con-15-lok-bilder-13-08f753.png

After confirming the dialog, the colours of the image look distinctly stronger.

lodi-con-15-lok-bilder-14-e3c5be.png
lodi-con-15-lok-bilder-15-02bd2a.png

Cropping the image

This step fits the image to the size of the locomotive. Select a rectangular area around the locomotive that is as tight as possible and crop the image to it with ImageCrop to Selection.

lodi-con-15-lok-bilder-16-b21d61.png

You may want to save this image first, so that you can produce further formats from it.

lodi-con-15-lok-bilder-17-4072d7.png

Scaling the image

Now the image is scaled to its final size. Choose ImageScale Image … for this. For long locomotives you can set the width to 190 pixels; the height follows automatically. For short locomotives it is better to set the height to 48 pixels. Take care not to exceed the maximum image size of 190 × 48 pixels.

lodi-con-15-lok-bilder-18-1d5206.png

After scaling, the result looks roughly like this:

lodi-con-15-lok-bilder-19-a306a6.png
lodi-con-15-lok-bilder-20-a286b7.png

Exporting the image

The last step saves the image in the target format. Use FileExport As … for this.

The file type is set by the extension: choose .png for PNG and .jpg for JPEG. After clicking Export, the export options for that format are asked for.

For JPEG choose the following settings:

lodi-con-15-lok-bilder-21-cbdbf6.png

For PNG the following settings should be used:

lodi-con-15-lok-bilder-22-11dbca.png
lodi-con-15-lok-bilder-23-0d9cbe.png

Uploading locomotive images to the LoDi-Con

lodi-con-15-lok-bilder-24-125353.png

Once the image has been edited it can be transferred to the LoDi-Con with the LoDi-ProgrammerFX. How that works is explained here.

After uploading to the LoDi-Con, a PNG with transparency looks like this:

lodi-con-15-lok-bilder-25-09f565.jpg

Would you like to see the quality of the devices for yourself?

Get in touch with us HERE!

Visit our forum, where experienced users are happy to help you.