Atomek
ImageResize

Overview

ImageResize 4.0 is an app for resizing JPEG and PNG images (also called scaling or resampling). It can process many images and create presentations (web galleries).

Contents

Overview
Source Images
Sizes
Target Folder
Rename and shuffle
Watermark
Quality
Tagging
Presentation
Loading and Saving
Settings
Commandline Parameters
Watermark Editor

Features

What it can't do

Overview

The program requires at least the following 3 pieces of information:

  1. The list of image files or a source folder with file filter
  2. One or more target sizes
  3. The target folder

At the end, press to start resampling.

Source files

ImageResize can resample many image files. The list of images consists of Path/filename and

  1. can be edited manually
  2. can be selected in the selection dialog with <CTRL> and <SHIFT>
  3. can be supplemented by dragging image files from Windows Explorer
  4. can be specified by specifying a source folder with a file filter
  5. can include relative path information

The list may contain JPEG and PNG files. The file names can be retained or renamed. Relative paths refer to the location of the project file (.irs) or the last current directory.

Content

Sizes

A size in pixels refers to the longer side of the image.

ImageResize can produce multiple sizes for each image. Enter a list of sizes, separated by a comma, or select sizes from the suggestions.

You can specify any size greater than 0.

You can change the list by using the delete button . To delete a single size, first select the size or click one already selected suggestion again.

Content

Target folder

A destination folder must be specified. You can type it directly or select with the button.

To avoid target name conflicts when multiple target sizes are specified, you can either create different file names with Rename, or by each size containing its own destination folder. The name of the target folder must be entered contain the placeholder %SIZE%.

Content

Rename and shuffle

Renaming the target files becomes interesting if you don't have any size a separate folder, but rather all files in a common folder. Then the target files must be renamed, preferably by changing the target size included for differentiation.

Click Apply and choose one of the possible strategies:

Strategy "Simple"

The simple filename template produces names like this: img085.jpg. File numbering starts at 1 and does not include size (in pixels). Then it is necessary to create a separate directory for each size. In addition Insert the placeholder %SIZE% into the template of the target folder.

In the simplest case, the file name template is img%INDEX:1,3%.%FILEEXT%. The INDEX is the 0-based sequential number of the source file in the list. The numbers 1 and 3 after the INDEX keyword mean that the index starts at 1 and 3 will contain digits with leading zeros.

Strategy "Advanced"

The file name template in this case is e.g. img%INDEX:1,3%_%SIZE%.%FILEEXT%, to create all files in the same directory without naming conflicts. It creates a file name like img085_1920.jpg. The filename conflict becomes avoided by using the %SIZE% wildcard.

Strategy "Custom"

To have the program generate a suitable file name, you can here provide your own template. The template contains placeholders for special values that are created and inserted during processing.

Examples of valid templates in the case where the resulting filenames do not create a conflict for different sizes in the common directory, could look like this:

img%INDEX:1.3%_%SIZE%.%FILEEXT%

results e.g. img012_1920.jpg

%FILENAME%_%SIZE%.%FILEEXT%

results.e.g. DSC3240_1920.jpg

Available placeholders

%FILENAME% This is the original file name, without the extension.
%FILEEXT% The extension of the original name without the period.

You cannot change the format of the target file by change the extension. This could confuse image viewers.
%INDEX:N,D% The 0-based index (sequential number) of the file in the list.

N is an offset. Lists usually start with the number 1, but by specifying an offset you can existing Expand lists. D is the number of digits of the resulting number, which if necessary, receives leading zeros. This creates the correct lexical order the file name allows.

%SIZE% The target size in pixels of the current file.
%INTERPOLATION% The name of the currently selected interpolation.

Shuffle

Shuffling means that the lexical order of the target file names is random. This requires the automatic renaming of the target files.

ImageResize first shuffles the order of the images before producing the resampled images. This only makes sense if the target file name contains the index of the image at the beginning of the variable part of the name so that the lexical order is ascending. A suitable template for the target name is, for example, img%INDEX:1,3%.%FILEEXT%.

The Seed parameter controls the random sequence. A seed of 0 ("Random") will produce a different sequence each time processing is started. Any other constant value will shuffle the sequence in the same way, as long as the length of the image list does not change.

Content

Watermark

A watermark is a semi-transparent small image that, for example, adds a copyright to the target image. The image must be in PNG format and can have an alpha channel (transparency). When that image is printed, additional opacity can be specified. 20 to 30 percent is good for a slightly visible appearance, from 50 percent the water pattern becomes clearly visible.

Apply

Select this option to activate the water image.

Filename

Specify a filename of a PNG file whose image will be scaled into each target image.

Normally it is sufficient to specify a common file for all target sizes because the size is adjusted for each image. A watermark image in good resolution is unique created for everyone.

In order to be able to set a different water image for each target size, you must Specify the placeholder %SIZE% in the name of the water image file. In this case, ImageResize expects a water image for each size, its name corresponds to the template, i.e. contains the size.

You can create water image files with any program that supports the PNG format, for example:

You can use transparency, but note that ImageResize also requires a You can put opacity on top of it.

Opacity

An opacity of 0 percent makes the water image disappear, while 100 percent makes it fully opaque.

10% 20%
30% 40%
50% 60%
70% 80%
90% 100%

Size

Size is in percent of the available width.
1 percent is the smallest and 100 percent is the full width.

Horizontal Position

The position is given as a percentage of the available space and is counted from the top left.
0 percent is left-aligned, 50 percent is centered, and 100 percent is right-aligned.

Vertical Position

0 percent is at the top, 50 percent is vertically centered, 100 percent is at the bottom.

Content

Quality

The quality of the result depends on these settings. You can set the compression level for JPEG and PNG formats and control the resampling algorithm (interpolation).

Interpolation

Resampling or scaling means building a new image with smaller or larger dimensions with the same aspect ratio. This requires the colors of the pixels of the target image be determined by interpolation. In the simplest case - stretch (without interpolation) - the pixel gets the color value of the pixel closest to it in the original. This leads to loss of information and quality when down-scaling and poor quality when up-scaling.

There are 11 resampling algorithms available. Apart from the simple Stretch, the algorithms are interpolations. Depending on the scaling, they have different effects.

The default is "Best Quality". "Mitchell" is used for down-scaling and "Spline" is selected for up-scaling up.

Take a look at the effect of different interpolations.

JPEG quality

JPEG has a lossy compression. A higher quality results in larger files. For JPEG, 75 to 95 percent is a good choice. But 50% has yet a surprisingly good quality with small files.

PNG compression

The PNG format always compresses losslessly, but for natural images it results in low compression, so it is mainly useful for artificial images where there are large monochromatic areas.

There are 4 degrees of compression available:

Content

Tagging

General

You can add certain meta information to the generated images. Normally such meta information for photos (e.g. JPEG) is saved in EXIF format within the file. Modern cameras store a lot of technical information. The most important meta information for ImageResize are Title, Timestamp and Copyright.

Tagging with ImageResize means that images created with ImageResize are provided with certain of this information. It is supported by ImageResize for two reasons:

  1. To maintain your copyright when sharing images
  2. As a basis for the presentation as a private or public website

There are the following strategies for passing such tags in ImageResize:

  1. As EXIF tags within JPEG images
  2. As an .imgtags file that is automatically attached to every target directory and every image size

There are the following sources for tags:

  1. The EXIF tags of the original files
  2. .tags files that you can attach to the original images folders

EXIF tags

Unfortunately, ImageResize currently only supports certain EXIF tags:

In the Tagging settings dialog you can select which of the tags mentioned should be included in the target images. The copyright entries for all images can be overwritten with a new character string.

Preparing to tag your Images

There are two ways to tag the copies created:

1. Expand the original files with EXIF meta information

This only works with JPEG images, but not with PNG images. You can do this

2. Preparing the tags in .tags files

Using any simple text editing program, such as Windows Notepad (notepad.exe), write a list of tags and save the UTF-8 encoded file in the directory with the original files under the name “.tags”. If you have multiple directories with images, put a .tags file in each directory.

A .tags file is a UTF-8 encoded CSV (comma separated list) file. The title bar contains the names of the columns (Filename, Title, Timestamp, Copyright). Below this there is a line for each image with the fields corresponding to the header line.

  Filename, Title, Copyright
  DSC04262.jpg, Labore Sanitas, (c) 2023 ATOMEK
  DSC04264.jpg, Leuchtturm am Hafen, (c) 2023 ATOMEK
  DSC04288.jpg, "Heimfahrt durchs Watt, herrlich", (c) 2023 ATOMEK

The first column must be named "Filename" and contains the name of the file without the path. The order of the other columns and the order of the rows are insignificant. You can also introduce your own fields, used in the presentation. If you want a field to contain commas or leading spaces, enclose the value in double quotes. The last fields of a line can be missing - no commas need to be included follow empty values. The asterisk * stands for a value that should be taken over from the previous line.

If you create multiple .tags files in different directories, they can differ in their structure and they can have different column names. If values repeat according to the value of the previous line, enter * as value.

Tagging Settings

Tags Saving

Here you control whether the found tags should be saved in .imgtags files in the target folders. The .imgtags files are small compared to the image files.

.tagsreport files are more general CSV files for future use and for your own programs. They are not needed by ImageResize.

.imgtags files are a prerequisite for creating a presentation and are generated by default.

Tags Loading

If you want to process tags, you must specify where they should come from. They can come either from the EXIF information of the JPEGs or from their .tags files or both. If they come from both, the .tags files take precedence. For example, the copyright tag is included in the EXIF information of the photo and there is also a copyright column in the .tags file, then the value is taken from the .tags file.

If you want to save tags but don't specify a tag source, ImageResize will automatically search for .tags files even if You have not explicitly stated this.

EXIF Tagging

Here you can determine whether the generated images should receive EXIF tags. Normally the images produced do not contain any Meta information from the original files. The title will be in EXIF field "ImageDescription" stored. You can override the copyright tag for all generated images.

If you specified both EXIF and .tags files as the source (Tags Loading), the .tags files take precedence. The EXIF meta information of the original files then will only be used if the .tags files for the respective image does not have any fields defined.

Content

Presentation

The most important innovation of version 4.0 is the introduction of the presentation of your images. The presentation is a web gallery that you can view using your web browser.

Create a Presentation

Assuming you have previously scaled your images to a suitable size, select the dialog Presentations... .

  1. select one of the available presentations, e.g. "Info 1.0"
  2. open the relevant .imgtags file with the meta information
  3. In the settings, enter the title of the gallery and other information
  4. Click Create
  5. View the created presentation with

If you click "Show" multiple times, your browser may open a new tab each time. You can instead, reload the presentation currently displayed in your browser.

If you close the dialog with Ok, the settings will be adopted into the current project.

Content

Open and save Project Files

You can save the current settings as a project with the .irs extension. These are simple text-based INI files.

When opening a project file, the current directory is set to the directory Project file set. This allows you to specify path information relatively to make the project and its images relocatable.

You can adjust how far ImageResize alerts you to saver changed settings. In the most convenient case, ImageResize always automatically saves the current settings.

You can change this behavior in the Settings dialog.

When settings are changed, this is indicated by a red dot in the save icon.

Content

Settings

Processing

In systems with Hyperthreading, the number of virtual cores is higher than the number of physical cores. If you have 12 cores, only 6 of which are physical, that results in the use of 12 threads Compared to 6 threads, the processing speed only increases by around 8 percent.

Save

Content

Command Line Parameters

These refer to the graphical application ImageResize.exe. There is also the command line program imgres.exe with significantly more options.

filename.irs

You can have ImageResize load an .irs file on startup by passing the filename as a command line parameter. This allows the ImageResize application to be associated with the .irs extension in the systems Control Panel.

-A or -AUTOSTART

Makes ImageResize automatically press the Run button at startup.

-X or -AUTOEXIT

Causes the application to close automatically after processing is finished.

-L EN or -LANGUAGE EN

The application is developed for the English language, but there is a German localization that automatically appears on German systems. This behavior can be prevented with the switch.

To have ImageResize automatically resample a list of images, first save a suitable .irs file and then start the program with these command line parameters:

C:\Program Files\ImageResize\ImageResize.exe C:\mylist.irs -A -X

Content

Watermark Editor

With the built-in watermark editor you can create a lettering with a some useful decorations.

The preview shows you what the watermark will approximately look like, but without the additional transparency that you can specify in the watermark settings.

To get an impression of what your watermark looks like on a dark or light background, press one of these buttons .

With this button you can save the dialog settings as a .was file and load it again later. The generated PNG image of the watermark is saved next to the .was file.

You can save your current favorite settings without a file name Save favorites and easily retrieve them later.

Text Enter the line of text that should be displayed in the watermark here. The © symbol with <OLD> <0> <1> <6> <9> or with that button.
Font Choose a font with the size in points, a font name in quotation marks and optionally the styles Italic and Bold or select a font in the dialog. The quality of the watermark depends on the font size. 12pt creates a coarse pixel watermark, 48pt creates one more accurate display. The font size has no impact on the later display in the image, as its size is determined by the watermark settings of the main window.
Color (Font) Select the character color (foreground).
Outline The font receives an outline with the selected color.
Color (Outline) Color of the outline.
Width (Outline) The outlines width in pixels.
Shadow Allows the font to have a blurred background that glows or appears like a shadow, depending on the color.
Color (Shadow) Select the color of the blurred background.
Blur This creates a glow or shadow around the writing to contrast the water image with the improve background. Select a width of the highlight or shadow in pixels. The effective width also depends on the font size.
Quality Controls the way the shadow appears. Try out the possible settings Normal, Disk, Corona, Precise, Fast and Box. Precise is a very thin shadow, like an outline.
Ok After a watermark has been defined, it must first be saved as a PNG file , or must be previously loaded from a file. Only then does Ok become available.
Cancel Closes the dialog without using the file.
Content