From b93aed16dbd5e4547f58082c17e2d2c3f11157d0 Mon Sep 17 00:00:00 2001 From: Caspar <58665956+TheFibonacciEffect@users.noreply.github.com> Date: Mon, 20 May 2024 14:52:24 +0200 Subject: [PATCH] arecord, convert: edit pages (#12644) Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna --- pages/common/convert.md | 8 ++++---- pages/linux/arecord.md | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/pages/common/convert.md b/pages/common/convert.md index e178f84090..c12d33491a 100644 --- a/pages/common/convert.md +++ b/pages/common/convert.md @@ -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 file size: -`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: +- Vertically/Horizontally append images: -`convert {{path/to/image1.png path/to/image2.png ...}} -append {{path/to/output_image.png}}` +`convert {{path/to/image1.png path/to/image2.png ...}} {{-append|+append}} {{path/to/output_image.png}}` - Create a GIF from a series of images with 100ms delay between them: diff --git a/pages/linux/arecord.md b/pages/linux/arecord.md index e8ffa5e453..8c4820ff56 100644 --- a/pages/linux/arecord.md +++ b/pages/linux/arecord.md @@ -22,3 +22,7 @@ - Allow interactive interface (e.g. use space-bar or enter to play or pause): `arecord --interactive` + +- Test your microphone by recording a 5 second sample and playing it back: + +`arecord -d 5 test-mic.wav && aplay test-mic.wav && rm test-mic.wav`