mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-06 14:55:02 +01:00
[thumbnailsconvertor] Treat jpeg as jpg
This commit is contained in:
parent
4513a41a72
commit
15a4fd53d3
2 changed files with 3 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor):
|
|||
# format, there will be some additional data loss.
|
||||
# PNG, on the other hand, is lossless.
|
||||
thumbnail_ext = os.path.splitext(thumbnail_filename)[1][1:]
|
||||
if thumbnail_ext not in ('jpg', 'png'):
|
||||
if thumbnail_ext not in ('jpg', 'jpeg', 'png'):
|
||||
thumbnail_filename = convertor.convert_thumbnail(thumbnail_filename, 'png')
|
||||
thumbnail_ext = 'png'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue