[Feature Request] Crop to square thumbnail when embedding in MP3s
See original GitHub issueChecklist
- I’m reporting a feature request
- I’ve verified that I’m running yt-dlp version 2021.06.09
- I’ve searched the bugtracker for similar feature requests including closed ones
Description
Music thumbnails from YouTube are always in 16:9 format, but the album art pictured is always 1:1. As a result, embedded thumbnails are letterboxed and get distorted in music players. Youtube-DL has an identitical issue at ytdl-org/youtube-dl#20011, but it and its respective pull request has since been ignored; I’m hoping this fork will be more receptive.
A pull request already exists for Youtube-DL to do this (ytdl-org/youtube-dl#20022,) and it turns out that it’s a pretty simple adjustment to the embed_thumbnail
postprocessor to filter the thumbnail.
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
How do I crop youtube thumbnails?? : r/youtubedl - Reddit
I want to crop the thumbnails into a square. This is what I typed into my notepad: -x. -f ba. --audio-format mp3.
Read more >Cropped and square Thumbnail's - WordPress.org
Issue is the Thumbnail's, they are square and cropped. I need them to appear as original, rectangular. Contacted theme support, “Porto”. They stated,...
Read more >Aperture Plugin - Apple Community - Apple Support Communities
The other feature request that jumped out at me - any way to have the last values ... Since the thumbnail is square,...
Read more >Feature Requests (Page 6) — Juicebox-Pro Support — Juicebox ...
Juicebox-Pro will crop the thumbnails only if the thumbWidth and thumbHeight configuration options do not match the actual dimensions of the thumbnail images ......
Read more >Real-time Thumbnail Generation in a (mostly) Serverless AWS ...
two stickmen cropping and resizing images ... But this all goes wrong when you need to embed a square image, you will not...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You can already do this using
--ppa
.Just put this in your config file:
–ppa ‘’‘EmbedThumbnail+ffmpeg_o:-c:v mjpeg -vf crop=“‘if(gt(ih,iw),iw,ih)’:‘if(gt(iw,ih),ih,iw)’”’‘’(See below comments)Eg:
Sorry I copy pasted the setting you get but still have a 1270x720 thumb here are my configs actually 'cause no ones worked
Actually I also can’t parse the track number