Skip to content

Commit 242d5fa

Browse files
committed
release: 2.0.3
2 parents 7976b0d + d2dee36 commit 242d5fa

File tree

6 files changed

+52
-39
lines changed

6 files changed

+52
-39
lines changed

CREDITS.md

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,41 @@
11
# Project Dependencies
22
Package: flaca
3-
Version: 2.0.2
4-
Generated: 2022-06-30 19:52:12 UTC
3+
Version: 2.0.3
4+
Generated: 2022-08-11 20:33:47 UTC
55

66
| Package | Version | Author(s) | License |
77
| ---- | ---- | ---- | ---- |
88
| [adler](https://github.com/jonas-schievink/adler.git) | 1.0.2 | [Jonas Schievink](mailto:[email protected]) | 0BSD, Apache-2.0, or MIT |
99
| [adler32](https://github.com/remram44/adler32-rs) | 1.2.0 | [Remi Rampin](mailto:[email protected]) | Zlib |
10-
| [ahash](https://github.com/tkaitchuck/ahash) | 0.7.6 | [Tom Kaitchuck](mailto:[email protected]) | Apache-2.0 or MIT |
11-
| [argyle](https://github.com/Blobfolio/argyle) | 0.6.0 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
10+
| [ahash](https://github.com/tkaitchuck/ahash) | 0.8.0 | [Tom Kaitchuck](mailto:[email protected]) | Apache-2.0 or MIT |
11+
| [argyle](https://github.com/Blobfolio/argyle) | 0.6.1 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
1212
| [bit-vec](https://github.com/contain-rs/bit-vec) | 0.6.3 | [Alexis Beingessner](mailto:[email protected]) | Apache-2.0 or MIT |
1313
| [bitflags](https://github.com/bitflags/bitflags) | 1.3.2 | The Rust Project Developers | Apache-2.0 or MIT |
1414
| [bytecount](https://github.com/llogiq/bytecount) | 0.6.3 | [Andre Bogus](mailto:[email protected]) and [Joshua Landau](mailto:[email protected]) | Apache-2.0 or MIT |
15-
| [bytemuck](https://github.com/Lokathor/bytemuck) | 1.9.1 | [Lokathor](mailto:[email protected]) | Apache-2.0, MIT, or Zlib |
15+
| [bytemuck](https://github.com/Lokathor/bytemuck) | 1.11.0 | [Lokathor](mailto:[email protected]) | Apache-2.0, MIT, or Zlib |
1616
| [byteorder](https://github.com/BurntSushi/byteorder) | 1.4.3 | [Andrew Gallant](mailto:[email protected]) | MIT or Unlicense |
1717
| [cfg-if](https://github.com/alexcrichton/cfg-if) | 1.0.0 | [Alex Crichton](mailto:[email protected]) | Apache-2.0 or MIT |
1818
| [color_quant](https://github.com/image-rs/color_quant.git) | 1.1.0 | [nwin](mailto:[email protected]) | MIT |
1919
| [crc](https://github.com/mrhooray/crc-rs.git) | 2.1.0 | [Rui Hu](mailto:[email protected]) and [Akhil Velagapudi](mailto:[email protected]) | Apache-2.0 or MIT |
2020
| [crc-catalog](https://github.com/akhilles/crc-catalog.git) | 1.1.1 | [Akhil Velagapudi](mailto:[email protected]) | Apache-2.0 or MIT |
2121
| [crc32fast](https://github.com/srijs/rust-crc32fast) | 1.3.2 | [Sam Rijs](mailto:[email protected]) and [Alex Crichton](mailto:[email protected]) | Apache-2.0 or MIT |
22-
| [crossbeam-channel](https://github.com/crossbeam-rs/crossbeam) | 0.5.5 | | Apache-2.0 or MIT |
23-
| [crossbeam-deque](https://github.com/crossbeam-rs/crossbeam) | 0.8.1 | The Crossbeam Project Developers | Apache-2.0 or MIT |
24-
| [crossbeam-epoch](https://github.com/crossbeam-rs/crossbeam) | 0.9.9 | | Apache-2.0 or MIT |
25-
| [crossbeam-utils](https://github.com/crossbeam-rs/crossbeam) | 0.8.10 | | Apache-2.0 or MIT |
22+
| [crossbeam-channel](https://github.com/crossbeam-rs/crossbeam) | 0.5.6 | | Apache-2.0 or MIT |
23+
| [crossbeam-deque](https://github.com/crossbeam-rs/crossbeam) | 0.8.2 | | Apache-2.0 or MIT |
24+
| [crossbeam-epoch](https://github.com/crossbeam-rs/crossbeam) | 0.9.10 | | Apache-2.0 or MIT |
25+
| [crossbeam-utils](https://github.com/crossbeam-rs/crossbeam) | 0.8.11 | | Apache-2.0 or MIT |
2626
| [ctrlc](https://github.com/Detegr/rust-ctrlc.git) | 3.2.2 | [Antti Keränen](mailto:[email protected]) | Apache-2.0 or MIT |
27-
| [dactyl](https://github.com/Blobfolio/dactyl) | 0.4.0 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
27+
| [dactyl](https://github.com/Blobfolio/dactyl) | 0.4.1 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
2828
| [deflate](https://github.com/image-rs/deflate-rs) | 0.8.6 | [oyvindln](mailto:[email protected]) | Apache-2.0 or MIT |
29-
| [dowser](https://github.com/Blobfolio/dowser) | 0.5.2 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
29+
| [dowser](https://github.com/Blobfolio/dowser) | 0.5.3 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
3030
| [either](https://github.com/bluss/either) | 1.7.0 | bluss | Apache-2.0 or MIT |
31-
| [fastrand](https://github.com/smol-rs/fastrand) | 1.7.0 | [Stjepan Glavina](mailto:[email protected]) | Apache-2.0 or MIT |
32-
| [fyi_msg](https://github.com/Blobfolio/fyi) | 0.9.13 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
33-
| [hashbrown](https://github.com/rust-lang/hashbrown) | 0.12.1 | [Amanieu d'Antras](mailto:[email protected]) | Apache-2.0 or MIT |
31+
| [fastrand](https://github.com/smol-rs/fastrand) | 1.8.0 | [Stjepan Glavina](mailto:[email protected]) | Apache-2.0 or MIT |
32+
| [fyi_msg](https://github.com/Blobfolio/fyi) | 0.9.15 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
33+
| [getrandom](https://github.com/rust-random/getrandom) | 0.2.7 | The Rand Project Developers | Apache-2.0 or MIT |
34+
| [hashbrown](https://github.com/rust-lang/hashbrown) | 0.12.3 | [Amanieu d'Antras](mailto:[email protected]) | Apache-2.0 or MIT |
3435
| [image](https://github.com/image-rs/image) | 0.23.14 | The image-rs Developers | MIT |
3536
| [indexmap](https://github.com/bluss/indexmap) | 1.9.1 | | Apache-2.0 or MIT |
3637
| [itertools](https://github.com/rust-itertools/itertools) | 0.10.3 | bluss | Apache-2.0 or MIT |
37-
| [libc](https://github.com/rust-lang/libc) | 0.2.126 | The Rust Project Developers | Apache-2.0 or MIT |
38+
| [libc](https://github.com/rust-lang/libc) | 0.2.129 | The Rust Project Developers | Apache-2.0 or MIT |
3839
| [libdeflate-sys](https://github.com/adamkewley/libdeflater) | 0.7.5 | [Adam Kewley](mailto:[email protected]) | Apache-2.0 |
3940
| [libdeflater](https://github.com/adamkewley/libdeflater) | 0.7.5 | [Adam Kewley](mailto:[email protected]) | Apache-2.0 |
4041
| [log](https://github.com/rust-lang/log) | 0.4.17 | The Rust Project Developers | Apache-2.0 or MIT |
@@ -47,7 +48,7 @@
4748
| [num-rational](https://github.com/rust-num/num-rational) | 0.3.2 | The Rust Project Developers | Apache-2.0 or MIT |
4849
| [num-traits](https://github.com/rust-num/num-traits) | 0.2.15 | The Rust Project Developers | Apache-2.0 or MIT |
4950
| [num_cpus](https://github.com/seanmonstar/num_cpus) | 1.13.1 | [Sean McArthur](mailto:[email protected]) | Apache-2.0 or MIT |
50-
| [once_cell](https://github.com/matklad/once_cell) | 1.12.0 | [Aleksey Kladov](mailto:[email protected]) | Apache-2.0 or MIT |
51+
| [once_cell](https://github.com/matklad/once_cell) | 1.13.0 | [Aleksey Kladov](mailto:[email protected]) | Apache-2.0 or MIT |
5152
| [oxipng](https://github.com/shssoichiro/oxipng) | 5.0.1 | [Joshua Holmer](mailto:[email protected]) | MIT |
5253
| [png](https://github.com/image-rs/image-png.git) | 0.16.8 | [nwin](mailto:[email protected]) | Apache-2.0 or MIT |
5354
| [rayon](https://github.com/rayon-rs/rayon) | 1.5.3 | [Niko Matsakis](mailto:[email protected]) and [Josh Stone](mailto:[email protected]) | Apache-2.0 or MIT |
@@ -58,5 +59,5 @@
5859
| [tempfile](https://github.com/Stebalien/tempfile) | 3.3.0 | [Steven Allen](mailto:[email protected]), The Rust Project Developers, [Ashley Mannix](mailto:[email protected]), and [Jason White](mailto:[email protected]) | Apache-2.0 or MIT |
5960
| [term_size](https://github.com/kbknapp/term_size-rs.git) | 0.3.2 | [Kevin K.](mailto:[email protected]) and [Benjamin Sago](mailto:[email protected]) | Apache-2.0 or MIT |
6061
| [unicode-width](https://github.com/unicode-rs/unicode-width) | 0.1.9 | [kwantam](mailto:[email protected]) and [Manish Goregaokar](mailto:[email protected]) | Apache-2.0 or MIT |
61-
| [write_atomic](https://github.com/Blobfolio/write_atomic) | 0.2.3 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
62+
| [write_atomic](https://github.com/Blobfolio/write_atomic) | 0.2.5 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
6263
| [zopflipng](https://github.com/google/zopfli) | | Google | Apache-2.0 |

Cargo.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "flaca"
3-
version = "2.0.2"
3+
version = "2.0.3"
44
license = "WTFPL"
55
authors = ["Josh Stoik <[email protected]>"]
66
edition = "2021"
@@ -77,9 +77,12 @@ description = "One or more image and/or directory paths to losslessly compress."
7777
name = "EARLY EXIT"
7878
inside = false
7979
lines = [
80-
"Compression can take a while. If you need to abort the process early, press",
81-
"CTRL+C once to quit after the active jobs have finished (skipping all",
82-
"remaining images in the queue), or twice to shut down immediately."
80+
"Press CTRL+C once to quit as soon as the already-in-progress operations have",
81+
"finished (ignoring any pending images still in the queue).",
82+
"",
83+
"Press CTRL+C a second time if you need to exit IMMEDIATELY, but note that doing",
84+
"so may leave artifacts (temporary files) behind, and in rare cases, lead to",
85+
"image corruption.",
8386
]
8487

8588
[[package.metadata.bashman.sections]]

release/man/flaca.1

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
.TH "FLACA" "1" "June 2022" "Flaca v2.0.2" "User Commands"
1+
.TH "FLACA" "1" "August 2022" "Flaca v2.0.3" "User Commands"
22
.SH NAME
3-
Flaca \- Manual page for flaca v2.0.2.
3+
Flaca \- Manual page for flaca v2.0.3.
44
.SH DESCRIPTION
55
Brute\-force, lossless JPEG and PNG compression.
66
.SS USAGE:
@@ -30,11 +30,17 @@ Read (absolute) image and/or directory paths from this text file, one entry per
3030
.TP
3131
One or more image and/or directory paths to losslessly compress.
3232
.SH EARLY EXIT
33-
Compression can take a while. If you need to abort the process early, press
33+
Press CTRL+C once to quit as soon as the already\-in\-progress operations have
3434
.RE
35-
CTRL+C once to quit after the active jobs have finished (skipping all
35+
finished (ignoring any pending images still in the queue).
3636
.RE
37-
remaining images in the queue), or twice to shut down immediately.
37+
38+
.RE
39+
Press CTRL+C a second time if you need to exit IMMEDIATELY, but note that doing
40+
.RE
41+
so may leave artifacts (temporary files) behind, and in rare cases, lead to
42+
.RE
43+
image corruption.
3844
.SS OPTIMIZERS:
3945
.TP
4046
\fBMozJPEG\fR

skel/vendor/lodepng/lodepng.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
LodePNG version 20220618
2+
LodePNG version 20220717
33
44
Copyright (c) 2005-2022 Lode Vandevenne
55
@@ -44,7 +44,7 @@ Rename this file to lodepng.cpp to use it for C++, or to lodepng.c to use it for
4444
#pragma warning( disable : 4996 ) /*VS does not like fopen, but fopen_s is not standard C so unusable here*/
4545
#endif /*_MSC_VER */
4646

47-
const char* LODEPNG_VERSION_STRING = "20220618";
47+
const char* LODEPNG_VERSION_STRING = "20220717";
4848

4949
/*
5050
This source file is divided into the following large parts. The code sections
@@ -2461,7 +2461,7 @@ static void setBitOfReversedStream(size_t* bitpointer, unsigned char* bitstream,
24612461
/* ////////////////////////////////////////////////////////////////////////// */
24622462

24632463
unsigned lodepng_chunk_length(const unsigned char* chunk) {
2464-
return lodepng_read32bitInt(&chunk[0]);
2464+
return lodepng_read32bitInt(chunk);
24652465
}
24662466

24672467
void lodepng_chunk_type(char type[5], const unsigned char* chunk) {
@@ -6488,7 +6488,7 @@ unsigned decompress(std::vector<unsigned char>& out, const unsigned char* in, si
64886488
size_t buffersize = 0;
64896489
unsigned error = zlib_decompress(&buffer, &buffersize, 0, in, insize, &settings);
64906490
if(buffer) {
6491-
out.insert(out.end(), &buffer[0], &buffer[buffersize]);
6491+
out.insert(out.end(), buffer, &buffer[buffersize]);
64926492
lodepng_free(buffer);
64936493
}
64946494
return error;
@@ -6507,7 +6507,7 @@ unsigned compress(std::vector<unsigned char>& out, const unsigned char* in, size
65076507
size_t buffersize = 0;
65086508
unsigned error = zlib_compress(&buffer, &buffersize, in, insize, &settings);
65096509
if(buffer) {
6510-
out.insert(out.end(), &buffer[0], &buffer[buffersize]);
6510+
out.insert(out.end(), buffer, &buffer[buffersize]);
65116511
lodepng_free(buffer);
65126512
}
65136513
return error;
@@ -6552,7 +6552,7 @@ unsigned decode(std::vector<unsigned char>& out, unsigned& w, unsigned& h, const
65526552
state.info_raw.colortype = colortype;
65536553
state.info_raw.bitdepth = bitdepth;
65546554
size_t buffersize = lodepng_get_raw_size(w, h, &state.info_raw);
6555-
out.insert(out.end(), &buffer[0], &buffer[buffersize]);
6555+
out.insert(out.end(), buffer, &buffer[buffersize]);
65566556
}
65576557
lodepng_free(buffer);
65586558
return error;
@@ -6570,7 +6570,7 @@ unsigned decode(std::vector<unsigned char>& out, unsigned& w, unsigned& h,
65706570
unsigned error = lodepng_decode(&buffer, &w, &h, &state, in, insize);
65716571
if(buffer && !error) {
65726572
size_t buffersize = lodepng_get_raw_size(w, h, &state.info_raw);
6573-
out.insert(out.end(), &buffer[0], &buffer[buffersize]);
6573+
out.insert(out.end(), buffer, &buffer[buffersize]);
65746574
}
65756575
lodepng_free(buffer);
65766576
return error;
@@ -6602,7 +6602,7 @@ unsigned encode(std::vector<unsigned char>& out, const unsigned char* in, unsign
66026602
size_t buffersize;
66036603
unsigned error = lodepng_encode_memory(&buffer, &buffersize, in, w, h, colortype, bitdepth);
66046604
if(buffer) {
6605-
out.insert(out.end(), &buffer[0], &buffer[buffersize]);
6605+
out.insert(out.end(), buffer, &buffer[buffersize]);
66066606
lodepng_free(buffer);
66076607
}
66086608
return error;
@@ -6622,7 +6622,7 @@ unsigned encode(std::vector<unsigned char>& out,
66226622
size_t buffersize;
66236623
unsigned error = lodepng_encode(&buffer, &buffersize, in, w, h, &state);
66246624
if(buffer) {
6625-
out.insert(out.end(), &buffer[0], &buffer[buffersize]);
6625+
out.insert(out.end(), buffer, &buffer[buffersize]);
66266626
lodepng_free(buffer);
66276627
}
66286628
return error;

skel/vendor/lodepng/lodepng.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
LodePNG version 20220618
2+
LodePNG version 20220717
33
44
Copyright (c) 2005-2022 Lode Vandevenne
55

src/main.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,12 @@ ARGS:
251251
compress.
252252
253253
EARLY EXIT:
254-
Compression can take a while. If you need to abort the process early, press
255-
", "\x1b[38;5;208mCTRL\x1b[0m+\x1b[38;5;208mC\x1b[0m once to quit after the active jobs have finished (skipping all
256-
remaining images in the queue), or twice to shut down immediately.
254+
Press ", "\x1b[38;5;208mCTRL\x1b[0m+\x1b[38;5;208mC\x1b[0m once to quit as soon as the already-in-progress operations
255+
have finished (ignoring any pending images still in the queue).
256+
257+
Press \x1b[38;5;208mCTRL\x1b[0m+\x1b[38;5;208mC\x1b[0m a second time if you need to exit IMMEDIATELY, but note that
258+
doing so may leave artifacts (temporary files) behind, and in rare cases,
259+
lead to image corruption.
257260
258261
OPTIMIZERS USED:
259262
MozJPEG <https://github.com/mozilla/mozjpeg>

0 commit comments

Comments
 (0)