-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
68 changed files
with
1,826 additions
and
1,283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
[package] | ||
name = "flaca" | ||
version = "3.1.0" | ||
license = "WTFPL" | ||
authors = ["Josh Stoik <josh@blobfolio.com>"] | ||
edition = "2021" | ||
description = "Brute-force, lossless JPEG and PNG compression." | ||
readme = "README.md" | ||
publish = false | ||
exclude = [ | ||
".gitignore", | ||
".righteous-sandbox.json", | ||
"doc", | ||
"justfile", | ||
"release", | ||
] | ||
|
||
[package.metadata.deb] | ||
maintainer = "Josh Stoik <hello@blobfolio.com>" | ||
copyright = "2024, Blobfolio, LLC <hello@blobfolio.com>" | ||
license-file = ["../LICENSE", "0"] | ||
extended-description = """\n\ | ||
Flaca is a CLI tool for x86-64 Linux machines that simplifies the task of losslessly compressing JPEG and PNG images for use on the web.\n\ | ||
.\n\ | ||
Under the hood, it uses MozJPEG for lossless JPEG (re)compression, and Oxipng/Zopflipng for lossless PNG (re)compression.""" | ||
revision = "1" | ||
depends = "$auto" | ||
section = "graphics" | ||
assets = [ | ||
["../target/release/flaca", "usr/bin/", "755"], | ||
["../release/completions/flaca.bash", "etc/bash_completion.d/", "644"], | ||
["../release/man/flaca.1.gz", "usr/share/man/man1/", "644"], | ||
] | ||
|
||
[package.metadata.bashman] | ||
name = "Flaca" | ||
bash-dir = "../release/completions" | ||
man-dir = "../release/man" | ||
credits-dir = "../" | ||
|
||
[[package.metadata.bashman.switches]] | ||
short = "-h" | ||
long = "--help" | ||
description = "Print help information and exit." | ||
|
||
[[package.metadata.bashman.switches]] | ||
long = "--no-jpeg" | ||
description = "Skip JPEG images." | ||
|
||
[[package.metadata.bashman.switches]] | ||
long = "--no-png" | ||
description = "Skip PNG images." | ||
|
||
[[package.metadata.bashman.switches]] | ||
short = "-p" | ||
long = "--progress" | ||
description = "Show pretty progress while minifying." | ||
|
||
[[package.metadata.bashman.switches]] | ||
short = "-V" | ||
long = "--version" | ||
description = "Print version information and exit." | ||
|
||
[[package.metadata.bashman.options]] | ||
short = "-j" | ||
label = "<NUM>" | ||
description = "Limit parallelization to this many threads (instead of giving each logical core its own image to work on). If negative, the value will be subtracted from the total number of logical cores." | ||
path = false | ||
|
||
[[package.metadata.bashman.options]] | ||
short = "-l" | ||
long = "--list" | ||
label = "<FILE>" | ||
description = "Read (absolute) image and/or directory paths from this text file — or STDIN if '-' — one entry per line, instead of or in addition to (actually trailing) <PATH(S)>." | ||
path = true | ||
|
||
[[package.metadata.bashman.options]] | ||
long = "--max-resolution" | ||
label = "<NUM>" | ||
description = "Skip images containing more than <NUM> total pixels to avoid potential OOM errors during decompression. [default: ~4.29 billion]" | ||
path = false | ||
|
||
[[package.metadata.bashman.options]] | ||
short = "-z" | ||
label = "<NUM>" | ||
description = "Run NUM lz77 backward/forward iterations during zopfli PNG encoding passes. More iterations yield better compression (up to a point), but require *significantly* longer processing times. In practice, values beyond 500 are unlikely to save more than a few bytes, and could take *days* to complete! Haha. [default: 20 or 60, depending on the file size]" | ||
path = false | ||
|
||
[[package.metadata.bashman.arguments]] | ||
label = "<PATH(s)…>" | ||
description = "One or more image and/or directory paths to losslessly compress." | ||
|
||
[[package.metadata.bashman.sections]] | ||
name = "EARLY EXIT" | ||
inside = false | ||
lines = [ | ||
"Press CTRL+C once to quit as soon as the already-in-progress operations have", | ||
"finished (ignoring any pending images still in the queue).", | ||
"", | ||
"Press CTRL+C a second time if you need to exit IMMEDIATELY, but note that doing", | ||
"so may leave artifacts (temporary files) behind, and in rare cases, lead to", | ||
"image corruption.", | ||
] | ||
|
||
[[package.metadata.bashman.sections]] | ||
name = "OPTIMIZERS" | ||
inside = true | ||
items = [ | ||
[ "MozJPEG", "<https://github.com/mozilla/mozjpeg>" ], | ||
[ "Oxipng", "<https://github.com/shssoichiro/oxipng>" ], | ||
[ "Zopflipng", "<https://github.com/google/zopfli>" ] | ||
] | ||
|
||
[dependencies] | ||
argyle = "0.7.*" | ||
crossbeam-channel = "=0.5.*" | ||
ctrlc = "=3.4.4" | ||
dactyl = "0.7.*" | ||
dowser = "0.9.*" | ||
write_atomic = "0.5.*" | ||
|
||
[dependencies.flapfli] | ||
version = "*" | ||
path = "../flapfli" | ||
|
||
[dependencies.fyi_msg] | ||
version = "0.13.*" | ||
features = [ "progress" ] | ||
|
||
[dependencies.mozjpeg-sys] | ||
version = "=2.2.0" | ||
features = [ "jpegtran" ] | ||
|
||
[dependencies.oxipng] | ||
version = "=9.1.1" | ||
default-features = false | ||
features = [ "freestanding" ] | ||
|
||
[build-dependencies] | ||
dowser = "0.9.*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../README.md |
Oops, something went wrong.