emptygif
Language: English

All languages and frameworks

Python one-liner Python

A Python snippet for Python one-liner that answers requests for /pixel.gif with the empty GIF, decoded once at startup.

Python one-liner Python

File
pixel.sh
python3 -c "import base64, pathlib; pathlib.Path('pixel.gif').write_bytes(base64.b64decode('R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=='))"

We ran this snippet and compared the bytes it returned.

Official site: Python one-liner

More in Python