Skip to main content

edittextinphoto-masks

Normalized bounding-box and brush-region mask utilities for localized text replacement, screenshot copy updates, and pixel redaction.

Built as a lightweight, zero-dependency reference toolkit for Edit Text in Photo.

Supported Presets

Preset ID Ratio / Scale Guidance
ui-headline 16:9 box-select single headline line with 3px anti-aliasing padding, preserve nav icons
packaging-label 4:5 brush-select curved coffee pouch text, preserve kraft grain and specular crease
menu-price-row 3:4 box-select aligned menu price column without touching horizontal divider rules
date-stamp-fix 4:3 tight box around digital camera date digits, match original amber glow
privacy-redact 16:9 client-side irreversible pixelation over email, phone, and API token strings

Quick Usage

JavaScript / TypeScript (NPM & JSR)

import { listPresets, getPreset, buildWorkflowUrl } from 'edittextinphoto-masks';

console.log(listPresets().map((p) => p.id));
console.log(getPreset('ui-headline'));
console.log(buildWorkflowUrl());

Python (PyPI)

from edittextinphoto_masks import list_presets, get_preset, build_workflow_url

print([p["id"] for p in list_presets()])
print(get_preset("ui-headline"))
print(build_workflow_url())

Go (pkg.go.dev)

package main

import (
    "fmt"
    pkg "github.com/ethanbrooks5827/edittextinphoto-masks"
)

func main() {
    fmt.Println(pkg.HomepageURL)
    fmt.Println(len(pkg.ListPresets()))
}

Rust (crates.io)

use edittextinphoto_masks::{HOMEPAGE_URL, list_presets, get_preset};

fn main() {
    println!("{}", HOMEPAGE_URL);
    assert!(get_preset("ui-headline").is_some());
    assert!(!list_presets().is_empty());
}

Reference Pages

License

MIT

Metadata

Release files for edittextinphoto-masks 0.1.0

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

Source distribution (sdist)

Source distribution for edittextinphoto-masks 0.1.0
File Size Uploaded Provenance Actions
edittextinphoto_masks-0.1.0.tar.gz 3.6 kB Without provenance Details for edittextinphoto_masks-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for edittextinphoto-masks 0.1.0
File Interpreter ABI Platform Actions
edittextinphoto_masks-0.1.0-py3-none-any.whl Python 3 none any Details for edittextinphoto_masks-0.1.0-py3-none-any.whl

Total release size: 8.1 kB

Release files / edittextinphoto_masks-0.1.0.tar.gz

Download URL edittextinphoto_masks-0.1.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
00f6974cd6d9ee01c4bac04a2a5664c509a89f2e7e7921b5ffff62177cf4545c
BLAKE2b-256 checksum
How to use checksums
9b900b907e3ffa3c65174453de3cb07b66d2c959d2959a527d419beb66650e59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / edittextinphoto_masks-0.1.0-py3-none-any.whl

Download URL edittextinphoto_masks-0.1.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d2cb566736b4144a4f00b7906837b4724ea60b22ea7a37508c38ce42215046b
BLAKE2b-256 checksum
How to use checksums
e575ff31c88fba068737056fc5f962320b6ad3f801aee3eb14f48c9c96b9f1fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for edittextinphoto-masks 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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