metascrubber

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 7 Imported by: 1

README

meta-scrubber

Documentation CircleCI

meta-scrubber provides a streaming metadata remover

It is a WORK IN PROGRESS and currently provides ZERO guarantees and VERY limited file format support.

cli usage

$ go build ./cmd/meta-scrubber
$ ./meta-scrubber input-file.png output-file.png

development

metascrubber will run tests on any .jpg or .png images in testdata. There's a large (currently ~1GB) corpus for testing at https://meta-scrubber-test-corpus.s3.us-west-1.amazonaws.com/exif-image-corpus.tar.gz. This corpus will be automatically downloaded and cached in testdata when the tests are first run. On future test runs, the corpus is checked for changes and, if necessary, updated. To avoid downloading/updating the corpus, or just to avoid testing against the corpus, run the tests with the -short flag.

Documentation

Overview

Package metascrubber provides a streaming metadata remover

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetScrubber

func GetScrubber(reader io.Reader) (io.Reader, error)

GetScrubber returns a reader which has metadata removed from its contents

Types

type MalformedDataError

type MalformedDataError struct {
	Message string
	Err     error
}

MalformedDataError represents an error parsing the underlying file format This could be an upstream reader issue, so consider checking it if needed

func (*MalformedDataError) Error

func (e *MalformedDataError) Error() string

func (*MalformedDataError) Unwrap

func (e *MalformedDataError) Unwrap() error

Directories

Path Synopsis
cmd
meta-scrubber
Command meta-scrubber is a CLI for scrubbing metadata from files
Command meta-scrubber is a CLI for scrubbing metadata from files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL