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: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
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
⌂ 换网址