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
arecord, convert: edit pages #12644
base: main
Are you sure you want to change the base?
arecord, convert: edit pages #12644
Conversation
The build for this PR failed with the following error(s):
Please fix the error(s) and push again. |
The build for this PR failed with the following error(s):
Please fix the error(s) and push again. |
The build for this PR failed with the following error(s):
Please fix the error(s) and push again. |
The build for this PR failed with the following error(s):
Please fix the error(s) and push again. |
The build for this PR failed with the following error(s):
Please fix the error(s) and push again. |
Allright now its ready : ) |
pages/common/convert.md
Outdated
|
||
`convert {{path/to/image1.png path/to/image2.png ...}} +append {{path/to/output_image.png}}` | ||
`convert {{path/to/input_image.png}} -define jpeg:extent=512kb {{path/to/output_image.jpg}}` | ||
|
||
- Vertically append images: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe change this example to include the horizontally append as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if we keep both horizontal and vertical append examples we will have more than 6 examples, so I chose to remove that one, because its similar to horizontal append. But we can also make some other choice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant to merge the two examples into one:
convert ... -append/+append ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah that makes sense, Ill add it
pages/linux/arecord.md
Outdated
- Test your microphone: | ||
|
||
`arecord -d 5 test-mic.wav && aplay test-mic.wav && rm test-mic.wav` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, we can document only the example relevant to this page and not aplay
IMO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kind of feel like arecord and aplay belong together but if you want to have it sepeately, thats okay too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This describes a use case for
arecord
/aplay
, I am not sure if we want this included in the tldr-page? @kbdharun @vitorhcl
Sorry for the delay, I didn't saw your comment. I have a different opinion than @kbdharun.
There are pages that mix some commands, so it's fine to describe a use case for both two commands, as long as one of them is the main one.
It's more about the perspective itself: this command is mainly using aplay
or arecord
, i.e., is the core behavior recording the microphone or playing the microphone audio? IMO it's roughly 50%, so we can keep it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
However, IMO it is important to document how to record to a file too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think its clear that the first command records a file.
pages/linux/arecord.md
Outdated
- Test your microphone: | ||
|
||
`arecord -d 5 test-mic.wav && aplay test-mic.wav && rm test-mic.wav` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Test your microphone: | |
`arecord -d 5 test-mic.wav && aplay test-mic.wav && rm test-mic.wav` | |
- Record 5 seconds of mic audio: | |
`arecord -d 5 {{path/to/output_audio.mp3}}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Test your microphone: | |
`arecord -d 5 test-mic.wav && aplay test-mic.wav && rm test-mic.wav` | |
- Record 5 seconds of mic audio: | |
`arecord --duration 5 {{path/to/output_audio.mp3}}` |
Co-authored-by: Sebastiaan Speck <[email protected]>
Is there anything that needs to be fixed before merging? |
@@ -16,13 +16,13 @@ | |||
|
|||
`convert {{path/to/input_image.png}} -resize 640x480 {{path/to/output_image.png}}` | |||
|
|||
- Horizontally append images: | |||
- Scale an image to have a specified filesize: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Scale an image to have a specified filesize: | |
- Scale an image to have a specified file size: |
common
,linux
,osx
,windows
,sunos
,android
, etc.