A Gamma muxing tool
This tool merges two pictures together by splitting them into high and low brightness images. The lighter image is scaled based on a custom gamma amount, which most programs don't support. However, browsers typically do support gamma, which affords the ability to make an image appear differently based on where it is viewed.
go run gammux.go -full ./fine.jpg -thumbnail ./notfine.jpg -dest merged.png
or if you want to use the Python2 version:
py -2 gammux.py fine.jpg notfine.jpg merged.png
Make sure you have the pillow library installed. If not, install it with pip:
py -2 -m pip install pillow
The tool takes 2 images as input:
- The thumbnail, is what will be shown by non compliant implementations.
- The full image, which will be shown by compliant implementations.
In the example, this is the Full:
And the thumbnail image:
This will produce
Depending on your browser, or phone, or whatever you use to see this, you will see one of two images.