1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Add Convert JPEG To PNG With ffmpeg as a Unix TIL

This commit is contained in:
jbranchaud
2024-10-16 12:43:18 -05:00
parent 33c5cd748f
commit 5ebdd9a1a9
2 changed files with 22 additions and 1 deletions

View 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.