7

GitHub - carl-mastrangelo/gammux: A Gamma muxing tool

 5 years ago
source link: https://github.com/carl-mastrangelo/gammux
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

Gammux

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.

Example

To run:

go run gammux.go -thumbnail ./fine.jpg  -full ./notfine.jpg  -dest mux.png -dither=true

The tool takes 2 images as input:

  1. The thumbnail, is what will be shown by non compliant implementations.
  2. The full image, which will be shown by compliant implementations.

In the example, this is the thumbnail:

fine.jpg

And the full image:

notfine.jpg

This will produce

mux.png

Depending on your browser, or phone, or whatever you use to see this, you will see one of two images.

Compliant

compliant.png

Non Compliant

noncompliant.png


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK