GitXplorerGitXplorer
c

gammux

public
54 stars
2 forks
2 issues

Commits

List of commits on branch master.
Verified
59606d1a05f430ad08c1ef9859ff86bc12ab0bab

Merge pull request #4 from Feriixu/master

ccarl-mastrangelo committed 6 years ago
Unverified
582b8d2d208ab4e2a683239cdaa181dce9a83fcd

Update gammux3.py

FFeriixu committed 6 years ago
Unverified
108fd9e2ce985b43355b5750efe3dd179ef87eeb

Update gammux3.py

FFeriixu committed 6 years ago
Unverified
897a924912833ea6b374d62286ef88a7c2714105

Create gammux3.py (Python3 Version)

FFeriixu committed 6 years ago
Verified
157d823a4433c60704f0748a84ab7982b48e797d

Merge pull request #3 from Feriixu/master

ccarl-mastrangelo committed 6 years ago
Unverified
5315343edc05d61315126f0157e0401e266610a6

Update README.md

FFeriixu committed 6 years ago

README

The README file for this repository.

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 -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:

  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 Full:

fine.jpg

And the thumbnail image:

notfine.jpg

This will produce

merged.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