Skip to content

Fails to import webp thumbnails from youtube #7288

@q0ntinuum

Description

@q0ntinuum

Describe the current behavior

The synchronization feature sometimes fails to import webp thumbnails saying the format is unsupported while I can just upload the same webp thumbnail and it will work.

Steps to reproduce

  1. Add a channel synchronization
  2. Check if all videos have the right thumbnail
  3. Some will have a random frame from the video

Describe the expected behavior

The thumbnail should be imported

Additional information

  • PeerTube instance:

  • Browser name, version and platforms on which you could reproduce the bug:

2025-11-12 15:41:10.659 warn: Cannot process thumbnail https://i.ytimg.com/vi_webp/mYNjTflbSsM/maxresdefault.webp from youtube-dl. {
  "err": {
    "stack": "Error: Unsupported MIME type: image/webp\n    at Jimp.throwError (/var/www/peertube/versions/peertube-v7.3.0/node_modules/@jimp/utils/dist/index.js:21:13)\n    at Jimp.parseBitmap (/var/www/peertube/versions/peertube-v7.3.0/node_modules/@jimp/core/dist/utils/i
mage-bitmap.js:159:32)",
    "message": "Unsupported MIME type: image/webp"
  }
}
2025-11-12 15:41:10.724 warn: Cannot process thumbnail https://i.ytimg.com/vi_webp/mYNjTflbSsM/maxresdefault.webp from youtube-dl. {
  "err": {
    "stack": "Error: Unsupported MIME type: image/webp\n    at Jimp.throwError (/var/www/peertube/versions/peertube-v7.3.0/node_modules/@jimp/utils/dist/index.js:21:13)\n    at Jimp.parseBitmap (/var/www/peertube/versions/peertube-v7.3.0/node_modules/@jimp/core/dist/utils/i
mage-bitmap.js:159:32)",
    "message": "Unsupported MIME type: image/webp"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions