Skip to main content

pixelate-redactor

Redact images with pixels

Works with Python >= 2.6, Python >= 3.2.

Installation

pip install pixelate-redactor

Example

pixelate-redactor

pixelate-redactor \
  --input=img/example_img_original.png \
  --output=img/example_img_redacted.png \
  --pixel-size=10 \
  --start-x=90 \
  --start-y=180 \
  --size-x=150 \
  --size-y=150

pixelate-redactor-boxes

pixelate-redactor \
  --input=img/example_img_original.png \
  --output=img/example_img_redacted.png \
  --pixel-size=10 \
  --boxes=img/boxes.json

with img/boxes.json:

{
  "__box_name_1__": {
    "px": 90,
    "py": 180,
    "sx": 150,
    "sy": 150
  },
  "__box_name_2__": {
    "px": 90,
    "py": 180,
    "sx": 150,
    "sy": 150
  }
}

(the values are the same, to keep the same result from the single box example)

  • px -> Position X
  • py -> Position Y
  • sx -> Size X
  • sy -> Size Y

Results

From this:

original

To this:

redacted

Metadata

Release files for pixelate-redactor 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pixelate-redactor 0.4
File Size Uploaded Provenance Actions
pixelate-redactor-0.4.tar.gz 2.6 kB Without provenance Details for pixelate-redactor-0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pixelate-redactor 0.4
File Interpreter ABI Platform Actions
pixelate_redactor-0.4-py3-none-any.whl Python 3 none any Details for pixelate_redactor-0.4-py3-none-any.whl

Total release size: 6.2 kB

Release files / pixelate-redactor-0.4.tar.gz

Download URL pixelate-redactor-0.4.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
35080c557cc03fb10ab81c4cf9c0f88465138aa1f1b3d4e9e98ba61afd4f3f6b
BLAKE2b-256 checksum
How to use checksums
2537fa4b0da97ba024bd66724a6900e008bde33b93692666bbe7fed624acdb24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

Release files / pixelate_redactor-0.4-py3-none-any.whl

Download URL pixelate_redactor-0.4-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f031d3358f1b326e4fc0522ca0150938af37ad439b062dac744d9648ed8bba52
BLAKE2b-256 checksum
How to use checksums
34d84d970aa2797e8aa65dff8317cd5ea7bb3165abd4925ecf6c0c73e4b55e87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

Security for pixelate-redactor 0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page