mat2 issueshttps://0xacab.org/jvoisin/mat2/-/issues2023-07-13T06:20:27Zhttps://0xacab.org/jvoisin/mat2/-/issues/176Add support for Nautilus 432023-07-13T06:20:27ZjvoisinAdd support for Nautilus 43As said on the [mailing list](https://lists.autistici.org/message/20220912.221557.187e40a4.en.html):
> Just wanted to let you know that due to Nautilus API changes in the
upcoming 43 release scheduled for September 21, I had to change
n...As said on the [mailing list](https://lists.autistici.org/message/20220912.221557.187e40a4.en.html):
> Just wanted to let you know that due to Nautilus API changes in the
upcoming 43 release scheduled for September 21, I had to change
nautilus-python’s API as well. It looks like you will be mainly
affected by the removal of `LocationWidgetProvider`, which probably
needs to be replaced by a string of GTK dialogues. Hopefully, the
migration guide will help you. Feel free to e-mail me or ask on
Nautilus’s Matrix chat if you have any questions.
> - GNOME Schedule: https://wiki.gnome.org/FortyThree
> - GtkDialog docs: https://docs.gtk.org/gtk4/class.Dialog.html
> - Migration guide: https://gnome.pages.gitlab.gnome.org/nautilus-python/nautilus-python-migrating-to-4.html
> - Nautilus’s chat: https://matrix.to/#/#nautilus:gnome.orghttps://0xacab.org/jvoisin/mat2/-/issues/133Cleaned PDFs wont print correctly (on some printers at least)2021-07-25T12:14:51ZgagzCleaned PDFs wont print correctly (on some printers at least)Hey,
I generated a PDF from a LibreOffice document, passed it to mat2 and tried to print it on a Xerox 7545, by pluging my USB stick directly into the printer.
It did something quite weird: the printed doc was only the bottom left quart...Hey,
I generated a PDF from a LibreOffice document, passed it to mat2 and tried to print it on a Xerox 7545, by pluging my USB stick directly into the printer.
It did something quite weird: the printed doc was only the bottom left quarter of the original document, zoomed to fit the entire A4.
We tried with other documents, PDFs generated by other programs, but same happened.
We also tried a A3 document, same happened.
Printing the same documents but before it goes through mat2 works fine.
I didn't have the chance to test it on other printers yet though, so it might come from the printer.
(i'm not sure if creating an issue for this is fine, but i didn't know how to raise the problem otherwise)
thank you for the hard work!https://0xacab.org/jvoisin/mat2/-/issues/119Respect file permission2019-10-13T09:58:53ZVipulRespect file permission```
$ ls -l test1.png
-rw-------. 1 finn finn 278088 Sep 14 04:12 test1.png
$ mat2 test1.png
$ ls -l test1*
-rw-r--r--. 1 finn finn 278091 Sep 14 04:14 test1.cleaned.png
-rw-------. 1 finn finn 278088 Sep 14 04:12 test1.png
```
Is it e...```
$ ls -l test1.png
-rw-------. 1 finn finn 278088 Sep 14 04:12 test1.png
$ mat2 test1.png
$ ls -l test1*
-rw-r--r--. 1 finn finn 278091 Sep 14 04:14 test1.cleaned.png
-rw-------. 1 finn finn 278088 Sep 14 04:12 test1.png
```
Is it expected behavior? Shouldn't `test1.cleaned.png` also have same file permission as `test1.png` (i.e. 600 instead of 644)?1.0 - Ponyhttps://0xacab.org/jvoisin/mat2/-/issues/116Ignore files if pass as an argument with -l (--list) option2019-08-01T15:14:23ZVipulIgnore files if pass as an argument with -l (--list) optionA cleaned copy of file is created when passed with `-l | --list` option as an argument.
```
mat2 -l photo.jpeg
ls
```
output:
```
photo.cleaned.jpeg
photo.jpeg
```
Same is true with `--check-dependencies`, `-L, --lightweight` and `-V...A cleaned copy of file is created when passed with `-l | --list` option as an argument.
```
mat2 -l photo.jpeg
ls
```
output:
```
photo.cleaned.jpeg
photo.jpeg
```
Same is true with `--check-dependencies`, `-L, --lightweight` and `-V, --verbose`https://0xacab.org/jvoisin/mat2/-/issues/113Setting output destination folder2019-07-19T15:26:54ZVipulSetting output destination folderAdd an option (-o or --output) to set output of a file to destination folder. This will reduce the number of steps if user wants to keep that file at specific location.
For ex:
mat2 my.jpeg -o ~/Documents/photo.jpeg
mat2 my.jpeg -o...Add an option (-o or --output) to set output of a file to destination folder. This will reduce the number of steps if user wants to keep that file at specific location.
For ex:
mat2 my.jpeg -o ~/Documents/photo.jpeg
mat2 my.jpeg -o ~/Documents/
(if name of file is not provided, save it with same name)
jvoisinjvoisinhttps://0xacab.org/jvoisin/mat2/-/issues/111Add option to preserve TOC in PDFs2023-08-02T23:18:10ZGhost UserAdd option to preserve TOC in PDFsNow, even with `-L` option, TOC is erased. It would be nice to have an option to wipe only creator, author, dates, etc. but preserve useful data like table of contents.Now, even with `-L` option, TOC is erased. It would be nice to have an option to wipe only creator, author, dates, etc. but preserve useful data like table of contents.1.0 - Ponyhttps://0xacab.org/jvoisin/mat2/-/issues/110Create a folder à la Dropbox as a GUI?2020-03-04T16:30:58ZjvoisinCreate a folder à la Dropbox as a GUI?Someone suggested that we should maybe try to create something like Dropbox does: a magical folder when files would get their metadata cleaned as soon at they're inside it. A small icon on the file would indicate if the files is cleaned,...Someone suggested that we should maybe try to create something like Dropbox does: a magical folder when files would get their metadata cleaned as soon at they're inside it. A small icon on the file would indicate if the files is cleaned, being cleaned, unable to be cleaned.
I don't know how practical this is to implement on Nautilus and its KDE/Xfce friends.https://0xacab.org/jvoisin/mat2/-/issues/109Improve zip compression2019-07-13T13:05:19ZjvoisinImprove zip compressionAs mentionned in #107, mat2 is currently using the default `ZIP_STORED` compression method for all zipfiles.
Maybe we should instead use the same method as the one used by the file being cleaned. This would make fingerprinting a bit easi...As mentionned in #107, mat2 is currently using the default `ZIP_STORED` compression method for all zipfiles.
Maybe we should instead use the same method as the one used by the file being cleaned. This would make fingerprinting a bit easier, but could also dramatically decrease produced archive sizes. I think that it's worth it.
This is a good first issue, since it involves designing a proper integration of this feature in the already-quite-complex archive handling code :)1.0 - Ponyhttps://0xacab.org/jvoisin/mat2/-/issues/106Pdf: Nautilus Extension does not work?2019-07-15T11:16:23Znigra blackPdf: Nautilus Extension does not work?hello,
i just installed mat2 and the nautilus extension on my debian stretch. i used this manual: https://0xacab.org/jvoisin/mat2/blob/master/INSTALL.md#debian
it works fine for nearly all formats, but not for pdf. if i open the contex...hello,
i just installed mat2 and the nautilus extension on my debian stretch. i used this manual: https://0xacab.org/jvoisin/mat2/blob/master/INSTALL.md#debian
it works fine for nearly all formats, but not for pdf. if i open the context-menue of a pdf there is no "clean metadata".
do you know this problem?
greetings, nigra1.0 - Ponygeorggeorghttps://0xacab.org/jvoisin/mat2/-/issues/105Verbose options is not verbose at all2019-08-01T15:13:06ZVaracVerbose options is not verbose at allThis is on ubuntu 19.04:
```
$ mat2 --verbose IMG_20190508_105854.jpg
$ mat2 --version
MAT2 0.8.0
$
```This is on ubuntu 19.04:
```
$ mat2 --verbose IMG_20190508_105854.jpg
$ mat2 --version
MAT2 0.8.0
$
```1.0 - Ponyhttps://0xacab.org/jvoisin/mat2/-/issues/104Add option to replace in-place2019-11-05T02:57:34ZVaracAdd option to replace in-placeMany tools have an option to replace files in place, without creating a seperate file.
It would be great if mat2 could offer this, since it's easier and less steps for the user.Many tools have an option to replace files in place, without creating a seperate file.
It would be great if mat2 could offer this, since it's easier and less steps for the user.1.0 - Ponyjvoisinjvoisinhttps://0xacab.org/jvoisin/mat2/-/issues/88Debian package status and build instructions are outdated2018-12-15T16:06:12ZAlanDebian package status and build instructions are outdated[0001-Fix-debian-build-instructions.patch](/uploads/0051c1baf37b536614a0983e12d37ea6/0001-Fix-debian-build-instructions.patch)
[0002-Update-debian-packaging-status.patch](/uploads/34882d960718fc9a25379aeb5dd1f8e0/0002-Update-debian-pack...[0001-Fix-debian-build-instructions.patch](/uploads/0051c1baf37b536614a0983e12d37ea6/0001-Fix-debian-build-instructions.patch)
[0002-Update-debian-packaging-status.patch](/uploads/34882d960718fc9a25379aeb5dd1f8e0/0002-Update-debian-packaging-status.patch)jvoisinjvoisinhttps://0xacab.org/jvoisin/mat2/-/issues/86Potential harmful printing of binary Exif metadata in terminal2018-11-10T12:54:09ZSherry TaylorPotential harmful printing of binary Exif metadata in terminal## Description
Mat2 prints binary values of Exif metadata fields on the terminal (`mat2 --show`).
Depending on the used terminal emulator, this can mess up the terminal settings or execute code. (Reference: https://security.stackexchan...## Description
Mat2 prints binary values of Exif metadata fields on the terminal (`mat2 --show`).
Depending on the used terminal emulator, this can mess up the terminal settings or execute code. (Reference: https://security.stackexchange.com/questions/56307/can-cat-ing-a-file-be-a-potential-security-risk).
### Exploit (Code Execution):
Here is an example JPG file with binary data in the comment field:
![Binary_data_in_Exif_Comment](/uploads/2fa4fe3b3e0d1af115856c29ee0141dc/Binary_data_in_Exif_Comment.jpg)
In rxvt-unicode (urxvt) v9.22 showing the metadata of that file with `mat2 --show` results in the following:
```bash
[user:/tmp] % mat2 --show Binary_data_in_Exif_Comment.jpg
[+] Metadata for Binary_data_in_Exif_Comment.jpg:
Comment:
^[G0
[user:/tmp] % 0
bash: command not found: 0
```
In this case, the binary `0` does not exist in the system, however, it would have been executed without any user interaction if it had existed.
## Suggested Fix
Filter or replace all non-printable characters of metadata before printing.
## System information
- MAT2 0.4.0
- perl-image-exiftool 11.110.6.0 - Slothjvoisinjvoisinhttps://0xacab.org/jvoisin/mat2/-/issues/84Implement lightweight cleaning for images2018-11-10T12:38:25ZjvoisinImplement lightweight cleaning for imagesCurrently, images are re-renderer, it would be nice to implement a lightweight cleaning mode that doesn't alter their quality.Currently, images are re-renderer, it would be nice to implement a lightweight cleaning mode that doesn't alter their quality.0.6.0 - Slothhttps://0xacab.org/jvoisin/mat2/-/issues/81Do we want optional dependencies?2018-10-23T14:37:24ZjvoisinDo we want optional dependencies?Currently, mat2 only has mandatory dependencies. To support videos (!25 ), we'll need to drag [ffmpeg]( https://ffmpeg.org/ ) in, and I'm not sure that everyone will be happy to have it as a hard-dependency.
For example, ffmpeg is not in...Currently, mat2 only has mandatory dependencies. To support videos (!25 ), we'll need to drag [ffmpeg]( https://ffmpeg.org/ ) in, and I'm not sure that everyone will be happy to have it as a hard-dependency.
For example, ffmpeg is not included in the default repositories of Fedora.
Do we want to implement it as an optional dependency?0.5.0 - Slughttps://0xacab.org/jvoisin/mat2/-/issues/79Investigate why only the first item of the embeded cover is shown for FLAC files2018-10-12T09:39:40ZjvoisinInvestigate why only the first item of the embeded cover is shown for FLAC filesEverything is in the title ;)Everything is in the title ;)0.5.0 - Slughttps://0xacab.org/jvoisin/mat2/-/issues/77Option / help request: "--keep-essential-metadata" or "--extralightweight" mo...2018-10-10T09:14:18ZThorsten RiesOption / help request: "--keep-essential-metadata" or "--extralightweight" mode for specific use casesCould a `mat2 --keep-essential-metadata` option be introduced (for MAT2 4) that only strips (direct) user identifiers and preserves some functionality and information that some users might want to keep: creation and last redaction date, ...Could a `mat2 --keep-essential-metadata` option be introduced (for MAT2 4) that only strips (direct) user identifiers and preserves some functionality and information that some users might want to keep: creation and last redaction date, the ability to continue using the track changes function.
The background is a discussion about use cases for MAT2 in archives, where anonymisation of records is sometimes necessary, but also preservation of material features of these records is a goal: see discussion here: https://0xacab.org/dkg/mat2/issues/1
As after five or more years the technical context (the concrete machine and data context) that could lead to identification does (probably) not exist anymore, preservation of basic functionality (RSID tags) and metadata that places the record historically (creation, last modified) becomes a valuable and legitimate resource for historical research (see "Good" reasons: https://33bits.wordpress.com). This would be a much lower level of anonymisation than what MAT2 usually does and it would certainly not prevent identification by mosaic effects or other indirect identification via context (which in the archive situation is in most cases not reconstructable). Total metadata erasure is not the focus in the archive, for various reasons it is just the right level of protection in such a case.
Could this be done? I am working with an archive that has large born-digital assets and I would like to propose MAT2 as a standard tool to anonymise their records so researchers can access them. Giving the archive the option to give researchers either completely anonymised (default) or anonymised with essential metadata (specific research interest) would make it easier for the archivists.
---
Related help request:
I have to make this happen for myself in my research project as well. I already have, for my use case, stripped MAT2 4.0 (which works best, producing docx output atht opens without error messages), of its RSID removal function.
Could someone help me with a code snippet that preserves the abovementioned metadata (revision count, creation, last modified date) in core.xml? MAT2 4.0 scrubs the content of this file completely and I grapple with repurposing the regex function I found elsewhere in the code.https://0xacab.org/jvoisin/mat2/-/issues/74Be more verbose if there are no metadata found2018-10-05T10:35:59ZPonchoBe more verbose if there are no metadata foundJust notice this after running `optipng -strip all -i 0 -o 9 mat2.png` for https://0xacab.org/jvoisin/mat2/merge_requests/20
Before:
```
mat2 -s mat2.png
[+] Metadata for mat2.png:
SignificantBits: 8 8 8 8
PixelsPerUnitX: 15118
P...Just notice this after running `optipng -strip all -i 0 -o 9 mat2.png` for https://0xacab.org/jvoisin/mat2/merge_requests/20
Before:
```
mat2 -s mat2.png
[+] Metadata for mat2.png:
SignificantBits: 8 8 8 8
PixelsPerUnitX: 15118
PixelsPerUnitY: 15118
PixelUnits: meters
Software: www.inkscape.org
Title: Adwaita Icon Template
Author: GNOME Design Team
Copyright: CC Attribution-ShareAlike http://creativecommons.org/licenses/by-sa/4.0/
```
After:
```
mat2 -s mat2.png
[+] Metadata for mat2.png:
```
Maybe output something along the lines of "No metadata found" instead of just nothing0.5.0 - Slughttps://0xacab.org/jvoisin/mat2/-/issues/59`mat2 -c file.pdf` should exit with an error message2018-09-05T15:49:30ZChristian`mat2 -c file.pdf` should exit with an error messageThe fact that the -c switch changed its meaning worries me a little.
People are used to write `mat -c file.pdf` to check and show metadata
without writing anything to a file. Now, `mat2 -c` is for checking
dependencies, and `mat2 -c file...The fact that the -c switch changed its meaning worries me a little.
People are used to write `mat -c file.pdf` to check and show metadata
without writing anything to a file. Now, `mat2 -c` is for checking
dependencies, and `mat2 -c file.pdf` should fail with an error message.
Instead, it silently acts as if the -c switch was not there and
proceeds to clean the file.0.4.0 - Dolphinjvoisinjvoisinhttps://0xacab.org/jvoisin/mat2/-/issues/50Gather feedback on MAT22023-01-07T16:07:38ZjvoisinGather feedback on MAT2Since I'm infamously known for being not good a designing usable software, I would like to have other people' opinion about MAT2, about its documentation, the Nautilus plugin and the cli.
*wink* *wink* @sajolida *wink* *wink* @emmapeelSince I'm infamously known for being not good a designing usable software, I would like to have other people' opinion about MAT2, about its documentation, the Nautilus plugin and the cli.
*wink* *wink* @sajolida *wink* *wink* @emmapeel1.0 - Pony