desqueeze produce the de-squeezed(stretched) image file. desqueeze is written in Go, install is deadly simple - just grab the binary from Releases page and drop it in your $PATH
.
input (before de-squeeze)
output (after de-squeeze)
Go to the Releases page and download the file. Unpack the archive file, and put the binary to $PATH
or somewhere you want.
Run the binary with image file path.
desqueeze [OPTIONS] imagefile
desqueeze produce the de-squeezed(stretched) image file. The filename is input filename with suffix '-desqueeze'. (ex: input.jpg -> input-desqueeze.jpg)
desqueeze default multiplies width by 1.33. If the squeeze factor of your lens is x2.00, run with -m 2.00
option.
desqueeze -m 2.00 imagefile
With batch or photo management software (ex: Adobe Lightroom Classic), --overwrite
option is worth using. This option overwrites input file.
desqueeze --overwrite imagefile
You can see all [OPTIONS]
with --help
command.
Display a help message.
Display the version.
Specify the output file path. The default value is input file path with suffix '-desqueeze' (ex: input.jpg -> input-desqueeze.jpg)
Multiplies the image width by the specified number. The default is 1.33
. If your anamorphic lens is x2.00, set -m 2.00
.
Specify the output JPEG file quality. The default is 100
.
desqueeze does not create new file, overwrite input file.
Be careful not to run on the original file.
First, fork this repo, and get your clone locally.
To test, run
make test
To build, run
make build
This will create a desqueeze
binary in .bin/
.
To cross build, run
make cross
This will create the Linux/MacOS/Windows packages in the ./dist/snapshot/
directory.
PRs are welcome!
- Test
- Supports more image formats, image color spaces.
- etsxxx
- Current version only supports JPEG file format.
- Current version only supports sRGB 8bits color space.