Reorder Images
This step plugin enables an automatic correction of the sorting of digitised material that was created separately for right and left book pages.
Overview
Identifier
intranda_step_reorder_images
Licence
GPL 2.0 or newer
Last change
25.07.2024 11:55:06
Introduction
The plugin allows automatic sorting of image files that were not created continuously during creation and instead were saved separately for left and right pages. This is useful if, for example, an opening angle of a book that is too small prohibits the scanning of left and right pages simultaneously.
Installation
To install the plugin, the following file must be installed:
To configure how the plugin should behave, various values can be adjusted in the configuration file. The configuration file is usually located here:
Overview and functionality
To use the plugin, it must be activated for one or more desired tasks in the workflow. This is done as shown in the following screenshot by selecting the plugin intranda_step_reorder_images
from the list of installed plugins.
Since this plugin is usually to be executed automatically, the step in the workflow should be configured as automatic.
Once the plugin is fully installed and set up, it is usually executed automatically within the workflow, so there is no manual interaction with the user. Instead, the plugin is called by the workflow in the background and starts the re-sorting and renaming of the files depending on the selected configuration.
Configuration
The configuration of the plugin is structured as follows:
The block <config>
can occur repeatedly for different projects or workflow steps in order to be able to carry out different actions within different workflows. The other parameters within this configuration file have the following meanings:
project
This parameter determines the project for which the current block <config>
is to apply. The name of the project is used here. This parameter can occur several times per <config>
block.
step
This parameter controls for which workflow steps the block <config>
is to apply. The name of the step is used here. This parameter can occur several times per <config>
block.
sourceFolder
This parameter specifies the directory from which the files are to be read. This is usually the master directory (master
).
targetFolder
Here you can specify the folder to which the reordered files are saved. This is usually the directory media
.
usePrefix
If a prefix is to be taken into account for the conversion, which precedes the file name and ends with an underscore, this can be defined here.
firstFileIsRight
Since the plugin proceeds differently whether the first file is a right or left page, this can be specified here.
namingFormat
The files are given new file names after they are re-sorted. How these should look like can be defined with a regular expression. The default value for this is %04d
, which generates 4-digit numbers for the file names.
blacklist
If selected files within the sorting are to be ignored and placed at the end of the previously sorted files, they can be named here. The files will be placed at the end of the list in the order in which they are listed here. They will then also receive a new file name that counts upwards.
Last updated