Package: mat2
_____ _____ _____ ___
|     |  _  |_   _|_  |  Keep your data,
| | | | |_| | | | |  _|     trash your meta!
|_|_|_|_| |_| |_| |___|Metadata and privacyMetadata consist of information that characterizes data.
Metadata are used to provide documentation for data products.
In essence, metadata answer who, what, when, where, why, and how about
every facet of the data that are being documented.Metadata within a file can tell a lot about you.
Cameras record data about when a picture was taken and what
camera was used. Office documents like PDF or Office automatically adds
author and company information to documents and spreadsheets.
Maybe you don't want to disclose those information.This is precisely the job of mat2: getting rid, as much as possible, of
metadata.mat2 provides:a library calledlibmat2;a command line tool calledmat2,a service menu for Dolphin, KDE's default file managerIf you prefer a regular graphical user interface, you might be interested inMetadata Cleaner, which is usingmat2under the hood.Requirementspython3-mutagenfor audio supportpython3-gi-cairoandgir1.2-poppler-0.18for PDF supportgir1.2-gdkpixbuf-2.0for images supportgir1.2-rsvg-2.0for svg supportFFmpeg, optionally, for video supportlibimage-exiftool-perlfor everything elsebubblewrap, optionally, for sandboxingPlease note that mat2 requires at least Python3.5.Requirements setup on macOS (OS X) usingHomebrewbrewinstallexiftoolcairopygobject3popplergdk-pixbuflibrsvgffmpegRunning the test suite$python3-munittestdiscover-vAnd if you want to see the coverage:$python3-coveragerun--branch-munittestdiscover-stests/
$python3-coveragereport--include-m--include/libmat2/*'How to use mat2usage: mat2 [-h] [-V] [--unknown-members policy] [--inplace] [--no-sandbox]
            [-v] [-l] [--check-dependencies] [-L | -s]
            [files [files ...]]

Metadata anonymisation toolkit 2

positional arguments:
  files                 the files to process

optional arguments:
  -h, --help            show this help message and exit
  -V, --verbose         show more verbose status information
  --unknown-members policy
                        how to handle unknown members of archive-style files
                        (policy should be one of: abort, omit, keep) [Default:
                        abort]
  --inplace             clean in place, without backup
  --no-sandbox          Disable bubblewrap's sandboxing
  -v, --version         show program's version number and exit
  -l, --list            list all supported fileformats
  --check-dependencies  check if mat2 has all the dependencies it needs
  -L, --lightweight     remove SOME metadata
  -s, --show            list harmful metadata detectable by mat2 without
                        removing themNote that mat2will notclean files in-place, but will produce, for
example, with a file named "myfile.png" a cleaned version named
"myfile.cleaned.png".Web interfaceIt's possible to run mat2 as a web service, viamat2-web.If you're using WordPress, you might be interested inwp-matandwp-mat-server.Desktop GUIFor GNU/Linux desktops, it's possible to use theMetadata CleanerGTK application.Supported formatsThe following formats are supported: avi, bmp, css, epub/ncx, flac, gif, jpeg,
m4a/mp2/mp3/…, mp4, odc/odf/odg/odi/odp/ods/odt/…, off/opus/oga/spx/…, pdf,
png, ppm, pptx/xlsx/docx/…, svg/svgz/…, tar/tar.gz/tar.bz2/tar.xz/…, tiff,
torrent, wav, wmv, zip, …Notes about detecting metadataWhile mat2 is doing its very best to display metadata when the--showflag is
passed, it doesn't mean that a file is clean from any metadata if mat2 doesn't
show any. There is no reliable way to detect every single possible metadata for
complex file formats.This is why you shouldn't rely on metadata's presence to decide if your file must
be cleaned or not.Notes about the lightweight modeBy default, mat2 might alter a bit the data of your files, in order to remove
as much metadata as possible. For example, texts in PDF might not be selectable anymore,
compressed images might get compressed again, …
Since some users might be willing to trade some metadata's presence in exchange
of the guarantee that mat2 won't modify the data of their files, there is the-Lflag that precisely does that.Related softwareThe first iteration ofMATExiftoolpdf-redact-tools, that
tries to deal withprinter dotstoo.pdfparanoia, that removes
watermarks from PDF.Scrambled Exif,
an open-source Android application to remove metadata from pictures.Dangerzone, designed to sanitize harmful documents
into harmless ones.ContactIf possible, use theissues systemor themailing listShould a more private contact be needed (eg. for reporting security issues),
you can email Julien (jvoisin) Voisin atjulien.voisin+mat2@dustri.org,
using the gpg key9FCDEE9E1A381F311EA62A7404D041E8171901CC.DonationsIf you want to donate some money, please give it toTails.LicenseThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU Lesser General Public License
along with this program.  If not, seehttp://www.gnu.org/licenses/.Copyright 2018 Julien (jvoisin) Voisinjulien.voisin+mat2@dustri.orgCopyright 2016 Marie-Rose for mat2's logoThetests/data/dirty_with_nsid.docxfile is licensed under GPLv3,
and was borrowed from the Calibre project:https://calibre-ebook.com/downloads/demos/demo.docxThenarrated_powerpoint_presentation.pptxfile is in the public domain.Thanksmat2 wouldn't exist without:theGoogle Summer of Code;the fine people fromTails;friendsMany thanks to them!