feat: add avif encoding support; update dependencies; ... (WIP)#1
Open
Gunzinger wants to merge 77 commits intotduyng:mainfrom
Open
feat: add avif encoding support; update dependencies; ... (WIP)#1Gunzinger wants to merge 77 commits intotduyng:mainfrom
Gunzinger wants to merge 77 commits intotduyng:mainfrom
Conversation
…ile flags in Cargo.toml; add lossless encoding option and quality option for webp, quality and speed for avif;
…etting to control behavior regarding overwriting existing outputs; sort paths before encoding; add statistics for remove_files call
… print this as encoder data; modify boolean flag definitions; add input and output size statistics, print compression ratio and statistics
Gunzinger
commented
Jun 23, 2025
src/lib.rs
Outdated
|
|
||
| ```bash | ||
| git clone https://github.com/tduyng/imgc-rs.git | ||
| git clone https://github.com/Gunzinger/imgc-rs.git |
Author
There was a problem hiding this comment.
This needs undoing before merge 😄
Author
…s); try to improve upload regex in workflow.yaml
…shing to workflow.yaml
Owner
|
Thank you so much, @Gunzinger, for taking an interest in my project and for this PR with improvements and new features! I haven’t had a chance to test it yet, but it looks really cool. To be honest, I originally created this project for personal use, and I haven’t worked on it in quite a while. If you’re truly motivated to continue developing it, I’d suggest focusing on your fork as the primary version. If you’re aiming for public use, publishing it to crates.io could be a great next step. Though keep in mind that most of the future work would then be on your side. Thanks again! |
chore(deps): bump indicatif from 0.17.12 to 0.18.0
chore(deps): bump clap from 4.5.40 to 4.5.41
…0.21.0 chore(deps): bump cargo_metadata from 0.20.0 to 0.21.0
chore(deps): bump rgb from 0.8.50 to 0.8.51
…d update clap annotations
…nd performance; improve build flags for dependencies; add jpeg and png filename aliases; update all dependencies and documentation
…rations (x86-64-v3, x86-64v3, x86-64-v4, znver3, znver5)
…ions/checkout (v4->v5) and peter-evans/dockerhub-description (v4->v5); prettify release name again
…oder dependency to fallback-retry jpeg formats, which adds support for p(rogressive)jpeg
… stem with the given output dir
… is_supported check-calls); adjust output_path derivation and pattern_base handling to work with relative paths starting with ./
…m to rgb(a) before (path is unimplemented in used lib)
…(support for imposter images with wrong extensions)
…more robust by wrapping them in a catch_unwind for zune jpeg panic catching; show converted/error/skipped; try to enable rust cache for CI job
…ed up by Swatinem/rust-cache@v2 without chance for error
…eporting errors, set final state when finishing the calculation; rewrite encoding statistics integration at the end of the program
…coding process; update github action workflow (used images)
… memory barrier); add --discard-input-alpha-channel parameter; update clap
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Hi Duy, thank you for the nice project :)
I played around with it a bit and add avif export support, though be aware that ravif encoding is really slow.
I also added some options to control the webp encoding process.
For the next few tasks I and am planing on adding an encoding path which utilizes the lossless webp encoding from image-rs, and some statistics about the encoding process as I have a larger batch of conversions to do for which I am adapting your program.
There will be some more changes coming, so this should be considered WIP.
feat:
chore: