Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michelerenzullo/lutify
LUT resizer, combiner and converter in python
https://github.com/michelerenzullo/lutify
colors cube hald lens-studio lut sparkar
Last synced: 15 days ago
JSON representation
LUT resizer, combiner and converter in python
- Host: GitHub
- URL: https://github.com/michelerenzullo/lutify
- Owner: michelerenzullo
- Created: 2021-01-24T14:16:58.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-02T15:35:34.000Z (over 2 years ago)
- Last Synced: 2023-03-08T06:43:42.042Z (almost 2 years ago)
- Topics: colors, cube, hald, lens-studio, lut, sparkar
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 15
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LUTify
A very complete and simple script to resize, combine/mix 2 luts or convert your CLUT images to CUBE format and viceversa.
**Do you like this project? Support it by donating**
- ![Paypal](https://raw.githubusercontent.com/reek/anti-adblock-killer/gh-pages/images/paypal.png) Paypal: [Donate](https://www.paypal.com/donate?hosted_button_id=XQ8QUEME5JZMN) or [paypal.me/michelerenzullo](https://paypal.me/michelerenzullo)
- ![btc](https://raw.githubusercontent.com/reek/anti-adblock-killer/gh-pages/images/bitcoin.png) Bitcoin: 1K9RF3s4aocmaRbh2Zu2FuHjrcg5BNeDxU
## FEATURES:
* Auto-detect input format
* Auto-resize not perfect square LUT size(example #33, #17...)
* Flip RGB values
* Change size and shape of your LUT (example Spark AR LUTs to Lens Studio 1x16 LUTs)
* Generate identity CLUT
* Read all types of CLUT
* Combine 2 luts and specify the amount from lut1 (0) to lut2 (100)
* Two type of interpolation when resizing: Tetrahedral or Nearest
Square:
![square](https://i.ibb.co/JcWC5Fc/Identity-HALD-square.png)
Square one-row:
![one-row](https://i.ibb.co/w7xVt25/Identity-HALD-square.png)
Hald:
![hald](https://i.ibb.co/QHPGtHG/Identity-HALD-classic.png)
## REQUIREMENTS:
* Python 3
* Numpy
* Pillow
```Shell
$ pip install numpy pillow
```
## USAGE:
```Shell
$ LUTify.py -h
usage: LUTify.py [-h] [--input INPUT] [--combine COMBINE] [--mixer MIXER]
[ --preserve] [--output OUTPUT] [--format {hald,square}]
[--identity] [--size SIZE] [--method {nearest,tetrahedral}]
[--rows ROWS] [--flip]...
```
* `-i INPUT`/`-o OUTPUT`supports .CUBE, .PNG, .JPG, .TIFF
* `-c COMBINE`/ supports .CUBE, .PNG, .JPG, .TIFF, optionals:
- - `-p PRESERVE` when combining 2 luts preserve the max size between them, default false
- - `-x MIXER` mix amount from lut1(0%) to lut2(100%), default is 50* `-id IDENTITY` generate a CLUT identity
* `-f FORMAT` "hald" or "square", override default output:
- - if output is CUBE or "identity", default format is "hald"- - if input is CUBE and output is image the default format is "hald"
- - if input is image and output is image default format will be automatically determinated as the opposite of the input format.
* `-s SIZE` choose your CLUT size or LUT size overriding input value.
* `-m METHOD` the method of interpolation when resizing between "tetrahedral"(default) and "nearest"
* `-r ROWS` number of rows when output is square
* `-ud FLIP` flip upside down RGB values
## TIPS:
If you would like to convert your Spark AR LUTs to Lens Studio:
```Shell
$ LUTify.py -i "SparkAR_SQUARE.png" -o "LensStudio_SQUARE.png" -s 4 -r 1 -f square --flip
```