We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently on a resize, the Gaussian sampling filter is always used;
the image crate offers various other sampling filters: https://docs.rs/image/0.19.0/image/enum.FilterType.html
Nearest
Triangle
CatmullRom
Lanczos3
Gaussian (also the default)
syntax:
sic script v1
Ideas for syntax:
resize x y <optional format>
resize 4 5 == resize 4 5 :sampling_filter gaussian
resize 4 5
resize 4 5 :sampling_filter gaussian
resize 4 5 :sampling_filter lanczos3
resize 4 5 -sampling-filter lanczos3
resize 4 5 +sampling-filter lanczos3
resize 4 5 #sampling-filter lanczos3
resize 4 5 (sampling-filter: lanczos3)
resize 4 5 {sampling-filter: lanczos3}
selected choice:
setopt resize <option> <option value>
setflag resize <flag>
resize <x> <y>
examples: cargo run -- --apply-operations "setopt resize sampling_filter triangle;resize 50 50" ./resources/bwlines.png ./target/o.png
cargo run -- --apply-operations "setopt resize sampling_filter triangle;resize 50 50" ./resources/bwlines.png ./target/o.png
--
PR: #102 Related:
The text was updated successfully, but these errors were encountered:
implemented in #102
Sorry, something went wrong.
foresterre
No branches or pull requests
Currently on a resize, the Gaussian sampling filter is always used;
the image crate offers various other sampling filters: https://docs.rs/image/0.19.0/image/enum.FilterType.html
Nearest
Triangle
CatmullRom
Lanczos3
Gaussian (also the default)
syntax:
sic script v1
Ideas for syntax:
resize x y <optional format>
resize 4 5
==resize 4 5 :sampling_filter gaussian
resize 4 5 :sampling_filter lanczos3
resize 4 5 -sampling-filter lanczos3
resize 4 5 +sampling-filter lanczos3
resize 4 5 #sampling-filter lanczos3
resize 4 5 (sampling-filter: lanczos3)
resize 4 5 {sampling-filter: lanczos3}
selected choice:
setopt resize <option> <option value>
setflag resize <flag>
resize <x> <y>
examples:
cargo run -- --apply-operations "setopt resize sampling_filter triangle;resize 50 50" ./resources/bwlines.png ./target/o.png
--
PR: #102
Related:
The text was updated successfully, but these errors were encountered: