Embed images into portable text files and extract them back
Project description
PixelFuse Backend
FastAPI service that embeds images into portable text files and extracts them back.
Docs
| # | File | Description |
|---|---|---|
| 001 | Overview | What PixelFuse does and the text file format |
| 002 | API Reference | Endpoint contracts, fields, and error codes |
| 003 | Configuration | Env vars and CLI flags |
| 004 | Development | Local setup, tests, lint, Docker |
| 005 | Deployment | Render, CI, self-hosted Docker |
Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /convert-embed/ |
Upload images → download base64 text file |
| POST | /extract-images/ |
Upload text file → download ZIP of images |
Supports JPEG, PNG, and HEIC formats. Max 10 files per request (configurable).
No distortion. Embed → extract is lossless. Raw image bytes are base64-encoded and decoded back exactly — no re-encoding at any stage.
Quickstart
pip install -e ".[dev]"
pixelfuse serve --reload
Configuration
All settings are overridable via environment variables prefixed PIXELFUSE_:
| Variable | Default | Description |
|---|---|---|
PIXELFUSE_HOST |
0.0.0.0 |
Bind host |
PIXELFUSE_PORT |
8000 |
Bind port |
PIXELFUSE_LOG_LEVEL |
info |
Uvicorn log level |
PIXELFUSE_MAX_UPLOAD_FILES |
10 |
Max files per request |
PIXELFUSE_ALLOWED_ORIGINS |
(required) | CORS origins (JSON array) |
Copy .env.example to .env for local overrides.
Development
# Lint
flake8 src tests
# Type check
mypy src
# All environments
tox
Deployment
Deployed on Render via render.yaml. CI runs on every push via GitHub Actions.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bh_pixelfuse-1.0.0.tar.gz.
File metadata
- Download URL: bh_pixelfuse-1.0.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
516fff145bed732f20991fc4f554039ea0bfd30df2c128efdedee6a87c01d3c4
|
|
| MD5 |
68b9d5ab8b5d558d28f019371897f597
|
|
| BLAKE2b-256 |
c7e92970e4d12ebb960f8d193184fcf89c2e1e80b42537eae2cd3b2f2473e611
|
Provenance
The following attestation bundles were made for bh_pixelfuse-1.0.0.tar.gz:
Publisher:
release.yml on abin-m/pixelfuse-backend
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bh_pixelfuse-1.0.0.tar.gz -
Subject digest:
516fff145bed732f20991fc4f554039ea0bfd30df2c128efdedee6a87c01d3c4 - Sigstore transparency entry: 1913779558
- Sigstore integration time:
-
Permalink:
abin-m/pixelfuse-backend@ec9e066bcd40c0e70f14aa64a434daf786a55d54 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/abin-m
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ec9e066bcd40c0e70f14aa64a434daf786a55d54 -
Trigger Event:
push
-
Statement type:
File details
Details for the file bh_pixelfuse-1.0.0-py3-none-any.whl.
File metadata
- Download URL: bh_pixelfuse-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c25cd56aa5bad263618d0e779d083d7cb70cb09db3c34c4a636ccdcd6431b7a9
|
|
| MD5 |
6b8bdbd43abecd906d215d2d558558cd
|
|
| BLAKE2b-256 |
599264444e5d14923361002dbbcdf518b0128cd4cd0ef37c9e2c0d618edc399f
|
Provenance
The following attestation bundles were made for bh_pixelfuse-1.0.0-py3-none-any.whl:
Publisher:
release.yml on abin-m/pixelfuse-backend
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bh_pixelfuse-1.0.0-py3-none-any.whl -
Subject digest:
c25cd56aa5bad263618d0e779d083d7cb70cb09db3c34c4a636ccdcd6431b7a9 - Sigstore transparency entry: 1913779694
- Sigstore integration time:
-
Permalink:
abin-m/pixelfuse-backend@ec9e066bcd40c0e70f14aa64a434daf786a55d54 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/abin-m
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ec9e066bcd40c0e70f14aa64a434daf786a55d54 -
Trigger Event:
push
-
Statement type: