Quality control of images
With the plugin for the quality control of images, images can be checked in detail for their quality

Introduction

​ This plugin is used to visually check the quality of images. It allows different views of images as thumbnails, in large display or even in full screen mode. In addition, the full text of the image can be displayed and various functions for download or image manipulation can be activated. ​
Details
Text
Identifier
intranda_step_imageQA
Licence
GPL 2.0 or newer
Compatibility
Goobi workflow 2021.02
Dokumentation date
21.03.2022

Installation

​ To use the plugin, these two files must be copied to the following locations: ​
1
/opt/digiverso/goobi/plugins/step/plugin_intranda_step_imageQA.jar
2
/opt/digiverso/goobi/plugins/GUI/plugin_intranda_step_imageQA-GUI.jar
Copied!
​ The configuration of the plugin takes place within its configuration file plugin_intranda_step_imageQA.xml. It is expected to be located under the following path: ​
1
/opt/digiverso/goobi/config/plugin_intranda_step_imageQA.xml
Copied!

Configuration of the plugin

​ The configuration of the plugin is structured as follows: ​
1
<config_plugin>
2
<!--
3
order of configuration is:
4
1.) project name and step name matches
5
2.) step name matches and project is *
6
3.) project name matches and step name is *
7
4.) project name and step name are *
8
-->
9
<config>
10
<!-- define plugin type in which screen the plugin is displayed, allowed values are 'part', 'full' (default) or 'both' -->
11
<guiType>full</guiType>
12
<!-- which projects to use for (can be more then one, otherwise use *) -->
13
<project>*</project>
14
<step>*</step>
15
<!-- which images to use , possible values are master|main|jpeg|source|... -->
16
<foldername>master</foldername>
17
<!-- how to display the thumbnails -->
18
<numberOfImagesPerPage>12</numberOfImagesPerPage>
19
<thumbnailsize>200</thumbnailsize>
20
<!-- number of thumbnails in preview area, default value is 8 -->
21
<numberOfImagesInPartGUI>8</numberOfImagesInPartGUI>
22
<!-- which image sizes to use for the big image -->
23
<thumbnailFormat>jpg</thumbnailFormat>
24
<mainImageFormat>jpg</mainImageFormat>
25
<!-- use the high speed JavaScript fullscreen view -->
26
<useJSFullscreen>false</useJSFullscreen>
27
28
<imagesize>800</imagesize>
29
<imagesize>1800</imagesize>
30
<imagesize>3000</imagesize>
31
<tileSize>256</tileSize>
32
<scaleFactors>1</scaleFactors>
33
<scaleFactors>32</scaleFactors>
34
<useTiles>false</useTiles>
35
<useTilesFullscreen>true</useTilesFullscreen>
36
<noShortcutPrefix>false</noShortcutPrefix>
37
<thumbnailsOnly>false</thumbnailsOnly>
38
39
<!-- allow deletion of images -->
40
<allowDeletion>false</allowDeletion>
41
<deletion command="/opt/digiverso/goobi/scripts/deleteImage.sh|IMAGE_FOLDER|IMAGE_FILE"/>
42
<!-- allow rotation of images -->
43
<allowRotation>false</allowRotation>
44
<rotationCommands>
45
<left command="/usr/bin/mogrify|-rotate|-90|IMAGE_FILE" />
46
<right command="/usr/bin/mogrify|-rotate|90|IMAGE_FILE" />
47
</rotationCommands>
48
<!-- allow flipping of images -->
49
<allowFlipping>true</allowFlipping>
50
<flippingCommands>
51
<horizontal command="/usr/bin/mogrify|-flop|IMAGE_FILE" />
52
<vertical command="/usr/bin/mogrify|-flip|IMAGE_FILE" />
53
</flippingCommands>
54
<!-- allow renaming of images -->
55
<allowRenaming>false</allowRenaming>
56
<!-- allow selection of images -->
57
<allowSelection>false</allowSelection>
58
<allowSelectionPage>false</allowSelectionPage>
59
<allowSelectionAll>false</allowSelectionAll>
60
<allowDownload>false</allowDownload>
61
<allowDownloadAsPdf>false</allowDownloadAsPdf>
62
<!-- allow the user to finish the task directly out of the plugin -->
63
<allowTaskFinishButtons>true</allowTaskFinishButtons>
64
<!-- configure button to display ocr -->
65
<displayocr>true</displayocr>
66
</config>
67
68
<config>
69
<!-- which projects to use for (can be more then one, otherwise use *) -->
70
<project>My special project</project>
71
<project>Archive_Project</project>
72
<step>MasterQA</step>
73
<step>DerivateQA</step>
74
<!-- which images to use -->
75
<foldername>master</foldername>
76
<foldername>main</foldername>
77
<!-- how to display the thumbnails -->
78
<numberOfImagesPerPage>12</numberOfImagesPerPage>
79
<thumbnailsize>200</thumbnailsize>
80
<!-- which image sizes to use for the big image -->
81
<imagesize>800</imagesize>
82
<imagesize>3000</imagesize>
83
<!-- allow deletion of images -->
84
<allowDeletion>false</allowDeletion>
85
<deletion command="/opt/digiverso/goobi/scripts/deleteImage.sh|IMAGE_FOLDER|IMAGE_FILE"/>
86
<!-- allow rotation of images -->
87
<allowRotation>false</allowRotation>
88
<rotationCommands>
89
<left command="/usr/bin/mogrify|-rotate|-90|IMAGE_FILE" />
90
<right command="/usr/bin/mogrify|-rotate|90|IMAGE_FILE" />
91
</rotationCommands>
92
<!-- allow flipping of images -->
93
<allowFlipping>true</allowFlipping>
94
<flippingCommands>
95
<horizontal command="/usr/bin/mogrify|-flop|IMAGE_FILE" />
96
<vertical command="/usr/bin/mogrify|-flip|IMAGE_FILE" />
97
</flippingCommands>
98
<!-- allow renaming of images -->
99
<allowRenaming>false</allowRenaming>
100
<!-- allow selection of images -->
101
<allowSelection>false</allowSelection>
102
<allowDownload>false</allowDownload>
103
<allowDownloadAsPdf>false</allowDownloadAsPdf>
104
<!-- allow the user to finish the task directly out of the plugin -->
105
<allowTaskFinishButtons>false</allowTaskFinishButtons>
106
<displayocr>true</displayocr>
107
</config>
108
109
<config>
110
<project>*</project>
111
<step>ImageQA</step>
112
<foldername>master</foldername>
113
<!-- how to display the thumbnails -->
114
<numberOfImagesPerPage>12</numberOfImagesPerPage>
115
<thumbnailsize>200</thumbnailsize>
116
<!-- which image sizes to use for the big image -->
117
<imagesize>800</imagesize>
118
<imagesize>3000</imagesize>
119
120
<!-- allow renaming of images -->
121
<allowRenaming>false</allowRenaming>
122
<renamingPattern>
123
<field defaultValue="${process:Archive}"></field>
124
<field defaultValue="${process:Object}"></field>
125
<field defaultValue="1" number="true" format="0000"></field>
126
</renamingPattern>
127
<displayocr>true</displayocr>
128
129
</config>
130
131
</config_plugin>
Copied!
​ The parameters within this configuration file have the following meanings: ​
Value
Description
guiType
With this parameter you can define how the user interface should behave. Possible values are part, full and both.
project
This parameter determines for which project 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 work steps the block <config> should apply. The name of the work step is used here. This parameter can occur several times per <config> block.
foldername
Specify here the directory from which the images are to be displayed. If several directories are used in the repeatable parameter, the user can choose between these directories. Possible values for this are e.g. master, media or also individual folders such as photos and scans.
numberOfImagesPerPage
Here you can define how many thumbnails should be displayed simultaneously in the regular display.
thumbnailsize
This allows you to specify the size of the thumbnails to be displayed.
numberOfImagesInPartGUI
With this parameter you can define how many thumbnails should be displayed within the accepted task.
thumbnailFormat
Here you define the file format for displaying the thumbnails.
mainImageFormat
Define the file format for displaying the large image here.
imagesize
With this parameter, which can be repeated, the individual zoom levels of the images can be defined. The more levels are defined, the more often a higher resolution version of the image is generated and loaded when zooming the image.
tileSize
This parameter defines the size of the tiles for a tiled display of the images.
useTilesFullscreen
Specify here whether a display based on tiles should also be shown within the full screen display.
allowDeletion
This parameter can be used to allow deletion of individual images.
deletionCommand
This sets the command for the delete operation. This can, among other things, allow images to be moved to other directories instead of actually being deleted.
allowRotation
When this function is activated, the displayed images may be rotated in 90 degree increments.
rotationCommands
This allows you to specify which command line calls should be used to rotate the images.
allowRenaming
With this parameter a functionality for the specific naming of image files can be activated.
allowSelection
With this parameter one checkbox per image can be activated, which allows an individual selection of each image.
allowSelectionPage
This parameter allows you to specify whether a button for selecting all images on the current page should be displayed.
allowSelectionAll
This parameter allows you to specify whether a button for selecting all images should be displayed.

Integration of the plugin into the workflow

​To put the plugin into operation, 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 intranda_step_imageQA plugin from the list of installed plugins. ​​
Assigning the plugin to a specific task
Integration of the plugin into a task within the workflow

Function and operation of the plugin

​ After the plugin has been completely installed and set up, it will be available for the users of the corresponding tasks. After entering a task, depending on the configuration, some images may be displayed immediately. ​
Display some images as preview within the accepted task
If you now enter the plugin by clicking on Plugin: intranda image control, you will see the full display, which includes both thumbnails and a large image display. ​
Display of thumbnails and a large image display simultaneously
Here you can select the desired images to be viewed in higher quality. The large image on the right can be zoomed and rotated for display. You can navigate between the images using the same shortcut keys as in the METS editor in Goobi workflow. ​
Images can also be displayed in a full-screen view for a larger view. In both the regular image display and the full-screen display, the associated full text can also be shown, provided that this has been generated in advance using OCR. ​
Image display in full screen mode with activated full text display
Besides the pure image display, the plugin can also handle other object types. For example, it is possible to display 3D objects, which can also be rotated and enlarged for display using additional navigation buttons. ​
Depending on the individual configuration, the plugin allows many more functions, which are mostly visible within the thumbnail display. If these functions have been configured in the configuration file described above, they can be used, for example, for downloading PDF files, image files, rotations, flippings, deletions and other operations. ​
Activated additional functions within the thumbnail display