mediapane-diff
A mediapane plugin: compare two images in the pane.
mediapane diff before.png after.png # side by side, flicker, difference heatmap
mediapane diff a.png b.png --mode heat # just one of: side, flicker, heat
mediapane diff <(git show HEAD~1:fig.png) fig.png --name fig.png
The views arrive as one series (one gallery entry, stepped with ←/→):
- side by side, labelled A and B
- flicker: A and B alternating at 2 fps, which makes small shifts jump out
- difference: per-pixel absolute difference (the largest over channels) in heat colours over a dimmed A. The scale is stretched to the largest difference, so even a single changed level shows.
It prints a one-line summary (fig.png: 1.33% of pixels differ (max 215/255, mean 2.87), or
identical). Animations are compared by their first frame; if the sizes differ, B is scaled to
A's size. Exit status: 0 on success, 1 if no pane is reachable, 2 if an input can't be read.
As a git difftool
git config --global difftool.mediapane.cmd 'mediapane diff "$LOCAL" "$REMOTE" --name "$MERGED"'
git difftool -y -t mediapane -- fig.png
git difftool -y -t mediapane HEAD~3 -- '*.png'
For a file that was added or deleted, git passes /dev/null for the missing side, and only the
side that exists is shown.
Install
uv tool install mediapane --with mediapane-diff
Development: uv sync && uv run pytest in this directory.
Metadata
Release files for mediapane-diff 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mediapane_diff-0.1.0.tar.gz | 8.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mediapane_diff-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.4 kB
Release files / mediapane_diff-0.1.0.tar.gz
| Download URL | mediapane_diff-0.1.0.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
22761cc76c04e9911e41193526e58d8bbaeb534320a309ee6a66dc2641a24d25
|
|
BLAKE2b-256 checksum How to use checksums |
db64e2afc9783fcd8d58449ad7b708efbc394b81b7e0c68870a3eeb3d9994d23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / mediapane_diff-0.1.0-py3-none-any.whl
| Download URL | mediapane_diff-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f938865c733bc321b6e0db20946188944d1ecb334ac6b02b10add56590e962c
|
|
BLAKE2b-256 checksum How to use checksums |
40baf646a50654d1d1d829e57ba8853ef2a3e6f8986d2f208e6ac86605cdd31c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logSecurity for mediapane-diff 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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for mediapane_diff-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logA 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.