diff --git a/README.md b/README.md index 520df03..47f3097 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ pairing with smart people at Hashrocket. For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186). -_1470 TILs and counting..._ +_1471 TILs and counting..._ --- @@ -1386,6 +1386,7 @@ _1470 TILs and counting..._ - [Command Line Length Limitations](unix/command-line-length-limitations.md) - [Compare Two Variables In A Bash Script](unix/compare-two-variables-in-a-bash-script.md) - [Configure cd To Behave Like pushd In Zsh](unix/configure-cd-to-behave-like-pushd-in-zsh.md) +- [Convert JPEG To PNG With ffmpeg](unix/convert-jpeg-to-png-with-ffmpeg.md) - [Convert SVG To Favicon](unix/convert-svg-to-favicon.md) - [Copying File Contents To System Paste Buffer](unix/copying-file-contents-to-system-paste-buffer.md) - [Copying Nested Directories With Ditto](unix/copying-nested-directories-with-ditto.md) diff --git a/unix/convert-jpeg-to-png-with-ffmpeg.md b/unix/convert-jpeg-to-png-with-ffmpeg.md new file mode 100644 index 0000000..623c511 --- /dev/null +++ b/unix/convert-jpeg-to-png-with-ffmpeg.md @@ -0,0 +1,20 @@ +# Convert JPEG To PNG With ffmpeg + +The `ffmpeg` utility "is a universal media converter." That means we can use it +to convert, for instance, a JPEG file to a PNG file. + +There is not a lot to a conversion like this. We use `-i` to specify the +existing input file (a JPEG) and then the other argument is the name and +extension of the output file. + +```bash +$ ls +profile.jpg + +$ ffmpeg -i profile.jpg profile.png + +$ ls +profile.jpg profile.png +``` + +See `man ffmpeg` for more details.