Deleting metadata from files
digiKam
With digiKam [11], which is part of the KDE Plasma library, you can view metadata with the push of a button and edit the data in a convenient editor. You'll find digiKam in the repositories of all of the popular distributions, and you can use digiKam with any desktop environment. When you launch digiKam for the first time, a multi-step wizard helps out with the basic configuration, which includes paths and settings for the software, as well the link to a database back end.
The program window that appears after the initial configuration has a conventional menubar and buttonbar for frequently used functions and three main panes below (Figure 9). On the left, the system's folder hierarchy is displayed as a tree view; in the center, you can see thumbnails of the image files that reside in the current folder. On the far right, digiKam displays information about the selected image.

If you select the Metadata tab in the unusual but space-saving vertical tab bar on the far right, the data from the headers of the active image appear in the information pane on the right. digiKam also divides this pane into several tabs. By default, it displays the Exif tags. In addition, the IPTC and XMP tabs will show the metadata for these specifications if available.
To edit the metadata in the active image, click Item in the menubar and select Edit Metadata from the context menu that opens. A separate dialog now lists all metadata sorted by tags and lets you modify the field content (Figure 10). You can also exclude or include individual fields by checking or unchecking the boxes to the left. On the left side of the dialog box, you can choose between several categories that group similar settings. At the top of the workspace, there are additional tabs that let you switch between the different metadata standards.
The dialogs for the IPTC and XMP standard primarily contain comment fields, a copyright note, and keywords for keyword tagging. The categories in the left sidebar change to reflect the options available for each standard. Once you have made your changes, first click Apply bottom left in the buttonbar and then OK to close the dialog. You are then returned to the digiKam main window.
XnView MP
The commercial XnView MP [12] tool, which is distributed as freeware for private and educational use, is a cross-platform image viewer with numerous image editing functions. XnView MP supports more than 500 image formats and is available for download for Linux from the vendor's website as a TGZ archive, a DEB binary package, and as an AppImage. The DEB package integrates seamlessly into Ubuntu and its derivatives and also creates an entry in the respective desktop's menu tree.
After starting XnView MP, a clear-cut, tab-based interface opens (Figure 11); it has four panes, a menubar, and a buttonbar. The top left pane contains a tree view of the system's folder hierarchy; in a large pane on the right, XnView MP displays the images from the current folder as previews. In the bottom right pane, you'll find a horizontal category list for tagging the images, as well as an info segment in the bottom left pane that displays the matching metadata in the EXIF, IPTC-IIM, and XMP tabs. However, if the current image has no metadata for a certain standard, XnView MP does not show you a tab for that standard.
Under Tools | Metadata, you will find various options for editing metadata, sorted by the supported standards. A separate Edit GPS data entry also lets you change existing GPS coordinates. The Delete option removes existing metadata completely, and you can specify which metadata XnView MP should delete in another dialog by checking a box (Figure 12). However, XnView MP does not consider individual tags, but only the respective standards.
While XnView MP can only edit a number of selected Exif tags, it offers more advanced modifications for IPTC and XMP metadata. To modify Exif tags, go to the Transfer dialog under Tools | Metadata, select the individual tags from a list, and populate them with predefined values from a drop-down list.
Conclusions
Linux proves to be very flexible when editing metadata in a wide variety of file formats. While there fewer Linux applications for this tasks compared with other operating systems, the tools that are available cover all common areas of application (see Table 1). Both command-line users and users who prefer a GUI will find a solution to meet their needs.
Table 1
Metadata Editing Tools
ExifTool | jExifToolGUI | ExifCleaner | jhead | mat2 | Metadata Cleaner | digiKam | XnView MP |
|
---|---|---|---|---|---|---|---|---|
License |
GPL |
GPL |
MIT |
Public Domain |
LGPL |
GPL |
GPL |
Commercial |
Properties |
||||||||
GUI |
No |
Yes |
Yes |
No |
Yes1 |
Yes |
Yes |
Yes |
Text-Based Interface |
Yes |
No |
No |
Yes |
Yes |
No |
No |
No |
Cross-Platform |
Yes |
Yes2 |
Yes |
Yes |
Yes |
No |
Yes |
Yes |
Supported Standards/Formats |
||||||||
Exif/IPTC/XMP |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Multimedia (Image/Audio/Video) |
Yes |
Yes |
Yes |
JPEG |
Yes |
Yes |
Yes |
Yes |
PDF Files |
No |
No |
Yes3 |
No |
Yes |
Yes |
No |
No |
Office Files |
No |
No |
No |
No |
Yes |
No |
No |
No |
Functions |
||||||||
Removing Metadata |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Modifying Metadata |
Yes |
Yes |
No |
Yes |
No |
No |
Yes |
Yes |
1File Manager, 2Java, 3Restricted |
Image editors like digiKam or XnView MP require some training, as they cover a very large range of functions, which makes their interfaces more confusing. Casual users who just want to remove metadata from their images for publication are better off using one of the point-and-click, meta tag removal-only programs. \
Infos
- IPTC-IIM: https://en.wikipedia.org/wiki/IPTC_Information_Interchange_Model
- Exif: https://en.wikipedia.org/wiki/Exif
- XMP: https://en.wikipedia.org/wiki/Extensible_Metadata_Platform
- ExifTool: https://exiftool.org/
- ExifTool editing options: https://exiftool.org/#supported
- jExifToolGUI: https://hvdwolf.github.io/jExifToolGUI/
- ExifCleaner: https://exifcleaner.com/
- jhead: https://www.sentex.ca/~mwandel/jhead/
- mat2: https://0xacab.org/jvoisin/mat2
- Metadata Cleaner: https://flathub.org/apps/details/fr.romainvigier.MetadataCleaner
- digiKam: https://www.digikam.org/
- XnView MP: https://www.xnview.com/de/xnviewmp/
« Previous 1 2 3 4
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you've found an article to be beneficial.
News
-
The GNU Project Celebrates Its 40th Birthday
September 27 marks the 40th anniversary of the GNU Project, and it was celebrated with a hacker meeting in Biel/Bienne, Switzerland.
-
Linux Kernel Reducing Long-Term Support
LTS support for the Linux kernel is about to undergo some serious changes that will have a considerable impact on the future.
-
Fedora 39 Beta Now Available for Testing
For fans and users of Fedora Linux, the first beta of release 39 is now available, which is a minor upgrade but does include GNOME 45.
-
Fedora Linux 40 to Drop X11 for KDE Plasma
When Fedora 40 arrives in 2024, there will be a few big changes coming, especially for the KDE Plasma option.
-
Real-Time Ubuntu Available in AWS Marketplace
Anyone looking for a Linux distribution for real-time processing could do a whole lot worse than Real-Time Ubuntu.
-
KSMBD Finally Reaches a Stable State
For those who've been looking forward to the first release of KSMBD, after two years it's no longer considered experimental.
-
Nitrux 3.0.0 Has Been Released
The latest version of Nitrux brings plenty of innovation and fresh apps to the table.
-
Linux From Scratch 12.0 Now Available
If you're looking to roll your own Linux distribution, the latest version of Linux From Scratch is now available with plenty of updates.
-
Linux Kernel 6.5 Has Been Released
The newest Linux kernel, version 6.5, now includes initial support for two very exciting features.
-
UbuntuDDE 23.04 Now Available
A new version of the UbuntuDDE remix has finally arrived with all the updates from the Deepin desktop and everything that comes with the Ubuntu 23.04 base.