Feature: width
argument to calculate scale from number of available columns
#6
No reviewers
Labels
No labels
bug
dependency tracking
documentation
duplicate
enhancement
good first issue
hacktoberfest-accepted
help wanted
invalid
major version
merge when passing
minor version
need to testing
patch version
question
size/S
size/XS
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: anas-elgarhy/aarty#6
Loading…
Reference in a new issue
No description provided.
Delete branch "columns_arg"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello, its me again 😃
I'm using your converter and found myself in this situation: I wanted to
aartyze
a bunch of pics from different size, all to an ascii file the same width.This feature come out naturally and gave the occasion of testing a small part of the code.
Do you think this could help you?
Nice feature @giulio-Joshi, I Think it will be useful ❤️
I'm glad you liked the tool, And thanks to you for tests
@ -105,6 +105,9 @@ Options:
[default: 4]
-w, --width <WIDTH>
Please copy this from the
aarty --help
output to save the consistencyCan you make this comment a document comment(
///
) instead of a normal comment, because theclap
will be use it in the help message that appears when you runaarty --help
@ -63,0 +89,4 @@
output_method: OutputMethod::Stdout,
image: "".into(),
characters: "".into(),
scale: 4,
You can make this method as inline method using the
#[inline]
suggests, This will can provide small but easy speed win.https://nnethercote.github.io/perf-book/inlining.html
Nice addition thanks, but there are some minor tweaks
@ -63,0 +89,4 @@
output_method: OutputMethod::Stdout,
image: "".into(),
characters: "".into(),
scale: 4,
No problem, even if actually is called just once per run.
Could gain more performance if we read the image from a file, or from
stdin
(for better bash integration).Yes of course, changes incoming.
@ -63,0 +89,4 @@
output_method: OutputMethod::Stdout,
image: "".into(),
characters: "".into(),
scale: 4,
I understand reading the image from a file, but what you mean with reading it from stdin?
@ -63,0 +89,4 @@
output_method: OutputMethod::Stdout,
image: "".into(),
characters: "".into(),
scale: 4,
That would mean like how the
-@
options works forzip
program:All
*.jpg
files get streamed tozip
and each one gets added toimage_gallery.zip
But that would mean changing some of the program parameters.