mirror of
https://github.com/jbranchaud/til
synced 2026-01-04 23:58:01 +00:00
Add Convert JPEG To PNG With ffmpeg as a Unix TIL
This commit is contained in:
@@ -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)
|
||||
|
||||
20
unix/convert-jpeg-to-png-with-ffmpeg.md
Normal file
20
unix/convert-jpeg-to-png-with-ffmpeg.md
Normal file
@@ -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.
|
||||
Reference in New Issue
Block a user