From 5027bba6c2c1c7546cfc0eb953de38181b7e4e7b Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 7 Jan 2013 22:37:54 +0100 Subject: Refactor the get_sharedir function, and move datas to a proper data folder --- data/FORMATS | 117 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ data/mat.png | Bin 0 -> 31340 bytes 2 files changed, 117 insertions(+) create mode 100644 data/FORMATS create mode 100644 data/mat.png (limited to 'data') diff --git a/data/FORMATS b/data/FORMATS new file mode 100644 index 0000000..3f0751c --- /dev/null +++ b/data/FORMATS @@ -0,0 +1,117 @@ + + + Portable Network Graphics + .png + image/png + full + textual metadata + date + removal of harmful fields is done with hachoir + + + + 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 + + + + + Open Document + .odt, .odx, .ods, ... + application/opendocument + full + a meta.xml file + removal of the meta.xml file + + + + Office Openxml + .docx, .pptx, .xlsx, ... + application/officeopenxml + full + a docProps folder containings xml metadata files + removal of the docProps folder + + + + 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. + + + + + Tape ARchive + .tar, .tar.bz2, .tar.gz + application/x-tar, application/x-gzip, 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. + + + + 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 + + + + MPEG Audio + .mp3, .mp2, .mp1, .mpa + audio/mpeg + full + id3 + removal of harmful fields is done with hachoir + + + + Ogg Vorbis + .ogg + audio/vorbis + full + Vorbis + removal of harmful fields is done with mutagen + + + + Free Lossless Audio Codec + .flac + audio/x-flac + full + Flac, Vorbis + removal of harmful fields is done with mutagen + + + + Torrent + .torrent + application/torrent + full + torrent + remove all the compromizing metadata with a heavily tuned version + of the bencode lib by Petru Paled + + diff --git a/data/mat.png b/data/mat.png new file mode 100644 index 0000000..4198c42 Binary files /dev/null and b/data/mat.png differ -- cgit v1.3