Deleting metadata from files
Housekeeping
Digital camera images often reveal personal information embedded in metadata. Several Linux tools let you remove unwanted metadata to help preserve your privacy.
The progressive digitalization of all areas of life makes it difficult to cope with the growing flood of data. Many users like to share photos taken with their smartphones or webcams, music and video files, and even PDF documents on the Internet. However, all of these file formats contain metadata that can be read with various programs and often reveals private information about the file's creator. Before you publish files on the Internet, you should first check for unwanted metadata and remove sensitive information to protect your privacy. This article looks at some Linux tools that will help you delete metadata from your files at the push of a button.
The Purpose of Metadata
Metadata is usually generated on the basis of defined specifications and intended to record certain characteristics of the files concerned. For example, in the case of image and video files, this metadata includes the camera model and the photo's technical settings. Often the metadata also includes time and date stamps and – if supported and activated on the hardware side – the GPS coordinates where the photo was taken. For all file formats, the author can also be listed in the metadata to make it easier to prove copyright infringements. In addition, the metadata can be used to keyword the files in order to categorize them and make them easier to find in applications such as image collections.
Standards
For video and image files, Exif, IPTC, and XMP are the standards for generating metadata. The respective data can be found in fixed data fields in the files' headers.
The International Press Telecommunications Council – Information Interchange Model (IPTC-IIM) specification [1] was defined as early as 1991 and can be used for all digital media.
More targeted to technical details, the much younger Exchangeable Image File Format (Exif) standard [2] is used on almost all common smartphones and digital cameras to provide images with metadata. Exif's last specification dates from 2010 and was last revised in 2019.
The Extensible Metadata Platform (XMP) [3] container format, similar to Exif, primarily maps the metadata for image files. However, XMP, which was developed by Adobe about 20 years ago, can also store free text and is therefore popular with applications such as Lightroom or darktable. All Adobe products support XMP.
Reading and Editing
Reading metadata does not require any special application software: The file managers of all common desktop interfaces can handle the existing standards. The file managers usually show some of the identified metadata when you view a file, for example, in an image viewer. In many cases, you can also display the most important metadata in a context menu in the respective file manager's Properties dialog (Figure 1). However, to edit metadata, you need special applications that usually focus on one of the existing specifications.
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
-
New Linux Kernel Patch Allows Forcing a CPU Mitigation
Even when CPU mitigations can consume precious CPU cycles, it might not be a bad idea to allow users to enable them, even if your machine isn't vulnerable.
-
Red Hat Enterprise Linux 9.5 Released
Notify your friends, loved ones, and colleagues that the latest version of RHEL is available with plenty of enhancements.
-
Linux Sees Massive Performance Increase from a Single Line of Code
With one line of code, Intel was able to increase the performance of the Linux kernel by 4,000 percent.
-
Fedora KDE Approved as an Official Spin
If you prefer the Plasma desktop environment and the Fedora distribution, you're in luck because there's now an official spin that is listed on the same level as the Fedora Workstation edition.
-
New Steam Client Ups the Ante for Linux
The latest release from Steam has some pretty cool tricks up its sleeve.
-
Gnome OS Transitioning Toward a General-Purpose Distro
If you're looking for the perfectly vanilla take on the Gnome desktop, Gnome OS might be for you.
-
Fedora 41 Released with New Features
If you're a Fedora fan or just looking for a Linux distribution to help you migrate from Windows, Fedora 41 might be just the ticket.
-
AlmaLinux OS Kitten 10 Gives Power Users a Sneak Preview
If you're looking to kick the tires of AlmaLinux's upstream version, the developers have a purrfect solution.
-
Gnome 47.1 Released with a Few Fixes
The latest release of the Gnome desktop is all about fixing a few nagging issues and not about bringing new features into the mix.
-
System76 Unveils an Ampere-Powered Thelio Desktop
If you're looking for a new desktop system for developing autonomous driving and software-defined vehicle solutions. System76 has you covered.