Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0.0 release #28

Merged
merged 3 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# 15 April 2024: 1.0.0
- **This crate now only process JPEG bytes. All other filesystem processes is handed over to the user of the crate.**
- Renamed primary public API to `Single::from_bytes` and `Parallel::from_vec` which reflect their input types.
- `Parallel` now produces an iterator via `into_iter()` to iterate over compression results sent by spawned threads.
- Added crate error enumerations.
- Removed mandatory method `output_dir()`.
- Removed dependency: `clap`, `anyhow`, `colored`.
# 04 April 2024: 0.4.0
- now stands as its own crate, called 'jippigy' (previously a cli tool [smoljpg](https://github.com/rfdzan/smoljpg)).
- defining public API, added tests and documentations.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "jippigy"
version = "0.4.0"
version = "1.0.0"
edition = "2021"
license = "MIT"
description = "Compress JPEG while preserving exif data. Provides multi-threaded method for compressing in bulk."
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ A multi-threaded JPEG compression crate, powered by [turbojpeg](https://github.c

This crate provides methods of compressing JPEG images in a single-threaded or multi-threaded way. Both methods preserves [EXIF](https://en.wikipedia.org/wiki/Exif) data of the original JPEG through [img_parts](https://docs.rs/img-parts/latest/img_parts/) crate.

# 1.0.0 release!
Summary of breaking changes:
- This crate now deals only with your JPEG image bytes. Meaning you have to read your images into a `Vec<u8>` or `Vec<Vec<u8>>` where the former is for `Single` and the latter `Parallel`. Both outputs `Vec<u8>` image bytes which you can save or do more image processing with.
- It doesn't save images or create directories anymore, in fact it doesn't touch your filesystem at all.
- Compressing with `Parallel` now uses an iterator.

See the [CHANGELOG.md](https://github.com/rfdzan/jippigy/blob/master/CHANGELOG.md) for more details.
# Error building `turbojpeg`?
The problem is typically related to `turbojpeg-sys` (see this [question](https://github.com/rfdzan/smoljpg/issues/4#issuecomment-2036065574) and my [attempt](https://github.com/rfdzan/jippigy/actions/runs/8552014019/job/23432251063#step:3:327) at setting up CI for this crate).

Expand Down
Loading