1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-09 01:35:18 +00:00

[ThumbnailsConvertor] Support conversion to png and make it the default (#333)

PNG, being a lossless format, should be a better default here compared to JPG since we won't be compressing to a lossy format and losing some of the original image data
PNG is also supported for embedding in all the formats similar to JPEG

Authored by: louie-github
This commit is contained in:
louie-github
2021-05-22 02:09:48 +08:00
committed by GitHub
parent 09f1580e2d
commit a927acb1ec
5 changed files with 25 additions and 16 deletions

View File

@@ -227,7 +227,7 @@ def _real_main(argv=None):
if opts.convertsubtitles not in ('srt', 'vtt', 'ass', 'lrc'):
parser.error('invalid subtitle format specified')
if opts.convertthumbnails is not None:
if opts.convertthumbnails not in ('jpg', ):
if opts.convertthumbnails not in ('jpg', 'png'):
parser.error('invalid thumbnail format specified')
if opts.date is not None: