Skip to content

fix: support WebP thumbnails inside ZIP archives#1387

Open
yosofbadr wants to merge 1 commit into
TagStudioDev:mainfrom
yosofbadr:issue/1364-thumbnail-support-for-webp-files-inside-zip
Open

fix: support WebP thumbnails inside ZIP archives#1387
yosofbadr wants to merge 1 commit into
TagStudioDev:mainfrom
yosofbadr:issue/1364-thumbnail-support-for-webp-files-inside-zip

Conversation

@yosofbadr

@yosofbadr yosofbadr commented Jun 15, 2026

Copy link
Copy Markdown

Summary

Fixes #1364 by allowing WebP images inside ZIP/CBZ archives to be used as thumbnails.

Changes

  • Added .webp to archive thumbnail image extension checks.
  • Made ComicInfo cover extension matching case-insensitive.
  • Added regression tests for WebP thumbnails in ZIP and CBZ archives.

Testing

  • uv run --extra pytest pytest tests/qt/test_thumb_renderer.py -q
  • uv run --extra ruff ruff check src/tagstudio/qt/previews/renderer.py tests/qt/test_thumb_renderer.py
  • uv run --extra ruff ruff format --check src/tagstudio/qt/previews/renderer.py tests/qt/test_thumb_renderer.py

Notes

A full test suite run was not used for this focused change because the local baseline python -m pytest command was already failing in setup. The affected thumbnail renderer path is covered by the targeted regression tests above.

@yosofbadr yosofbadr changed the title fix: Thumbnail support for WEBP files inside ZIP fix: support WebP thumbnails inside ZIP archives Jun 15, 2026
@CyanVoxel CyanVoxel added Type: Enhancement New feature or request Type: UI/UX User interface and/or user experience Status: Review Needed A review of this is needed TagStudio: Thumbs/Previews File thumbnails or previews labels Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: Review Needed A review of this is needed TagStudio: Thumbs/Previews File thumbnails or previews Type: Enhancement New feature or request Type: UI/UX User interface and/or user experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Thumbnail support for WEBP files inside ZIP

2 participants