Skip to main content

excel-photo

Convert any image into an .xlsx file where the image is recreated using colored Excel cells - pixel art, but it's a spreadsheet.

Install

pip install excel-photo

Usage

CLI

excel-photo input.png output.xlsx --max-dim 300 --max-colors 256

Python

from excel_photo import image_to_excel

result = image_to_excel("input.png", "output.xlsx", max_dim=300, max_colors=256)
print(result)  # {'grid_width': 300, 'grid_height': 168, 'unique_colors': 249}

Options

Option Default What it does
max_dim 100 Longer side of the grid, in cells. This is the resolution knob.
max_colors 256 Palette size (1-256). Keeps unique cell styles bounded regardless of max_dim - Excel hard-caps a workbook at 64,000 unique cell styles.

Notes

  • 300-400 for max_dim is a sweet spot: a real quality jump, still opens smoothly in Excel. Beyond ~500-600 Excel starts feeling sluggish just from rendering that many individually-styled cells, even though the file itself stays small.
  • Unused columns past the image are hidden so scrolling right stops cleanly. Rows aren't hidden the same way - Excel has no bulk-range mechanism for hiding rows, so doing this for the ~1M rows below the image would balloon the file instead of shrinking it.

License

MIT

Metadata

Release files for excel-photo 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 excel-photo 0.1.0
File Size Uploaded Provenance Actions
excel_photo-0.1.0.tar.gz 7.9 MB Without provenance Details for excel_photo-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for excel-photo 0.1.0
File Interpreter ABI Platform Actions
excel_photo-0.1.0-py3-none-any.whl Python 3 none any Details for excel_photo-0.1.0-py3-none-any.whl

Total release size: 7.9 MB

Release files / excel_photo-0.1.0.tar.gz

Download URL excel_photo-0.1.0.tar.gz
Size 7.9 MB
Tags Source
SHA-256 checksum
How to use checksums
72f4b366394c368000a84c25b2f2a785a6d3e0d77f72813db8f61d31c88f96c0
BLAKE2b-256 checksum
How to use checksums
aa3087f4461cb122833eb71fbc9d520d07b1294c7d031b463d0c9d0dcb82e952
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

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

Download URL excel_photo-0.1.0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d55c4e90c2d46146dda5104e01dfc31c8625f8f0b1a4a7b458d7341692cb4db
BLAKE2b-256 checksum
How to use checksums
c9c7ae2d661f87cdd6a164f47c2bb4ae6dd660a8784a024ed217b095380628b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Security for excel-photo 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