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

Support custom image compression #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

tofay
Copy link
Collaborator

@tofay tofay commented Oct 1, 2024

Following on from #24 (comment)

Users can bring their own compression by implementing the WriteComplete trait, and providing a closure that creates their Writer from a blob writer.

An example use case I've been experimenting with for faster compression is to use multithreaded gzip compression via https://github.com/sstadick/gzp (or a fork which resolves sstadick/gzp#56 ) - I added an example of how I've done that here, alongside a trivial example that does no compression. I'll remove the gzp example to avoid using my github branch but included it initially to demonstrate the use case.

@ariel-miculas
Copy link
Collaborator

@tofay is this PR ready for review?

Signed-off-by: Tom Fay <tom@teamfay.co.uk>
@tofay tofay marked this pull request as ready for review October 16, 2024 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support parallel compression of non-static writers
2 participants