question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can i download thumbnails in png/jpg format?

See original GitHub issue

Checklist

  • I’m asking a question
  • I’ve looked through the README and FAQ for similar questions
  • I’ve searched the bugtracker for similar questions including closed ones

Question

Hello, I try to download the thumbnails files in png/jpg format but they are always downloaded by default in webp format. I’m inserting this code in cmd:

youtube-dl --write-thumbnail [URL playlist]

The files are downloaded directly to the computer in webp format

I tried to add -f:

youtube-dl -f --write-thumbnail [URL playlist] But it still wouldn’t let me choose the format I wanted.

I know there’s an commend called:

--write-all-thumbnails But I don’t understand why you can’t choose to download in jpg/png format At the end of the day, it’s the same quality.

For example: https://i.ytimg.com/vi_webp/HOYDj769s6k/maxresdefault.webp

https://i.ytimg.com/vi/HOYDj769s6k/maxresdefault.jpg

It’s the same picture with a different extension.

I’ve seen a report on it before and it’s closed, but I didn’t understand the solution.

Can someone explain to me where I’m wrong?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
aviv926commented, Sep 30, 2021

you can always use dWebP from the Google’s WebM project #1 #2, or ffmpeg (which I think is already used in ytdl anyway…), to convert the thumbnail to whatever format that works best for you.

you can always use dWebP from the Google’s WebM project #1 #2, or ffmpeg (which I think is already used in ytdl anyway…), to convert the thumbnail to whatever format that works best for you.

With FFmpeg (Unix commands):

To .jpg: for i in *.webp; do ffmpeg -i "${i}" -q:v 1 -bsf:v mjpeg2jpeg "${i%.webp}.jpg"; done

To .png: for i in *.webp; do ffmpeg -i "${i}" "${i%.webp}.png"; done

Thanks guys!

I’ll check it out. Suggestion I Considered an Increase: Add an option to choose which format to download thumbnails as can be done with video I mean it: youtube-dl -f 'bestvideo + bestaudio / bestvideo + bestaudio' --merge-output-format mp4 [URL]

And turn it into something like this:

youtube-dl.exe --write-thumbnail [ext = jpg/png] --skip-download --output "%(title)s.%(ext)s" [URL HERE]

1reaction
aviv926commented, Oct 1, 2021

yt-dlp.exe --skip-download --write-thumbnail --convert-thumbnails jpg

Thank you very much bro you helped me! I did not even know that yt-dlp exists. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

[yt-dlp] --embed-thumbnail : How to use default JPG/JPEG ...
Seems like the downloaded JPEG/JPG thumbnail is auto converted to cover.PNG when using --embed-thumbnail . How to prevent such and just use ...
Read more >
How to Save Images to PNG Format (with Pictures) - wikiHow
1. Launch your favorite search engine. Do this by double-clicking the browser’s icon on your desktop or completing the next step if you...
Read more >
Convert your PNG to THUMBNAIL for Free Online - Zamzar
Do you want to convert a PNG file to a THUMBNAIL file ? Don't download software - use Zamzar to convert it for...
Read more >
How to Download Thumbnails using API? - Network Optix
Nx Witness allows you to retrieve a thumbnail from the camera, in the form of a static image, ... Can be png, jpg,...
Read more >
some JPG and PNG thumbnails disappeared
Alternatively, open the photo in Paint, save it (without doing anything other than Save) and the thumbnail appears in File Explorer as soon...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found