From 4568f336672e2e689b4bd5e7b4bc783526c636c2 Mon Sep 17 00:00:00 2001
From: jvoisin
Date: Fri, 26 Apr 2013 03:03:15 +0200
Subject: Simplify the FORMATS file
---
data/FORMATS | 102 ++++++++++++++++++++++++++++-------------------------------
1 file changed, 48 insertions(+), 54 deletions(-)
diff --git a/data/FORMATS b/data/FORMATS
index 3219998..b398be1 100644
--- a/data/FORMATS
+++ b/data/FORMATS
@@ -3,115 +3,109 @@
Portable Network Graphics
.png
image/png
- full
- textual metadata + date
- removal of harmful fields is done with hachoir
+ Full
+ Textual metadata and date
+ Removal of harmful fields with hachoir.
+ None
Jpeg
.jpeg, .jpg
image/jpeg
- partial
- comment + exif/photoshop/adobe
- removal of harmful fields is done with hachoir
- Canon Raw tags :
- http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/CanonRaw.html
-
+ Partial
+ Comments and exif/photoshop/adobe
+ Removal of harmful fields with hachoir.
+ Canon Raw tags
Open Document
.odt, .odx, .ods, ...
application/opendocument
- full
- a meta.xml file
- removal of the meta.xml file
+ Full
+ A meta.xml file
+ Removal of the meta.xml file.
+ None
Office Openxml
.docx, .pptx, .xlsx, ...
application/officeopenxml
- full
- a docProps folder containings xml metadata files
- removal of the docProps folder
+ Full
+ A docProps folder containings xml metadata files.
+ Removal of the docProps folder
+ None
Portable Document Fileformat
.pdf
application/pdf
- full
- a lot
- rendering of the PDF file on a cairo surface with the help of
- poppler in order to remove all the internal metadata.
- For now, cairo create some metadata.
- They can be remove if you install either exiftool, or python-pdfrw.
- The next version of python-cairo will support PDF metadata.
-
+ Full
+ A lot
+ Rendering of the PDF file on a cairo surface with the help of poppler.
+ None
- Tape ARchive and Bziped ones
- .tar, .tar.bz2
- application/x-tar, application/x-bzip2
- full
- metadata from the file itself, metadata from the file contained
- into the archive, and metadata added by tar to the file at then
- creation of the archive
- extraction of each file, treatement of the file, add treated file
- to a new archive, right before the add, remove the metadata added by tar
- itself. When the new archive is complete, remove all his metadata.
+ Tape ARchive
+ .tar, .tar.bz2, .tar.gz
+ application/x-tar, application/x-gzip, application/x-bzip2
+ Full
+ Metadata from compressed files, metadata added to them by tar and metadata from the tar itself.
+ Extraction and processing of each file, creation of a new archive, processing of this archive.
+ None
Zip
.zip
application/zip
- partial
- metadata from the file itself, metadata from the file contained
- into the archive, and metadata added by zip to the file when added to
- the archive.
- extraction of each file, treatement of the file, add treated file
- to a new archive. When the new archive is complete, remove all his metadata
- metadata added by zip itself to internal files
+ Partial
+ Metadata from compressed files, metadata added to them by zip and metadata from the zip itself.
+ Extraction and processing of each file, creation of a new archive, processing of this archive.
+ Metadata added by zip itself to internal files
MPEG Audio
.mp3, .mp2, .mp1, .mpa
audio/mpeg
- full
- id3
- removal of harmful fields is done with hachoir
+ Full
+ Id3
+ Removal of harmful fields with hachoir
+ None
Ogg Vorbis
.ogg
audio/vorbis
- full
+ Full
Vorbis
- removal of harmful fields is done with mutagen
+ Removal of harmful fields with mutagen
+ None
Free Lossless Audio Codec
.flac
audio/x-flac
- full
+ Full
Flac, Vorbis
- removal of harmful fields is done with mutagen
+ Removal of harmful fields with mutagen
+ None
- Torrent
- .torrent
- application/torrent
- full
- torrent
- remove all the compromizing metadata with a heavily tuned version
- of the bencode lib by Petru Paled
+ Torrent
+ .torrent
+ application/torrent
+ Full
+ Torrent specific metadata
+ Remove all the compromizing metadata with a heavily tuned version of the bencode lib by Petru Paled
+ None
--
cgit v1.3
From 7481af5e859be20b7a72a6e3a6a9d36c0749398f Mon Sep 17 00:00:00 2001
From: jvoisin
Date: Fri, 26 Apr 2013 03:03:37 +0200
Subject: Prettify mat -l output
---
mat | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/mat b/mat
index da43198..82e0e0a 100755
--- a/mat
+++ b/mat
@@ -113,9 +113,9 @@ def list_supported():
print('%s (%s)' % (item['name'], item['extension']))
print('\tsupport : ' + item['support'])
print('\tmetadata : ' + item['metadata'])
- print('\tmethod : ' + item['method'] + '\n')
- if item['support'] == 'partial':
- print('\tremaining : ' + item['remaining'] + '\n')
+ print('\tmethod : ' + item['method'])
+ print('\tremaining : ' + item['remaining'])
+ print('\n')
sys.exit(0)
--
cgit v1.3