About 1×1px Transparent GIF Images

When you need to create a 1×1 px transparent GIF image dynamically, you can use this data URL:

1
2
3
4
PLACEHOLDER_IMAGE_URL = (
    "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP"
    + "///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
)

Tips and Tricks Development Python 3 JavaScript