Skip to content

Fix Resolution Filter Showing 0 * 0#797

Merged
zanllp merged 1 commit into
zanllp:mainfrom
Ancions-dot:fix_resolution
May 7, 2025
Merged

Fix Resolution Filter Showing 0 * 0#797
zanllp merged 1 commit into
zanllp:mainfrom
Ancions-dot:fix_resolution

Conversation

@Ancions-dot

Copy link
Copy Markdown
Contributor

Problem:
The resolution filter (Image Search / Size) incorrectly displays 0 * 0 for all of my images, which were generated by ComfyUI. This happens because the filter relies on Size-1 and Size-2 metadata fields, which ComfyUI doesn’t include.

Solution:
Replaced metadata-based resolution checks with direct image dimension extraction using Pillow. This makes it completely independent of metadata standards and the tools used to generate the image. It should be able to handle any image format (JPEG/PNG/WEBP) as long as Pillow supports it.

@zanllp

zanllp commented May 7, 2025

Copy link
Copy Markdown
Owner

Nice fix! 🛠️ This makes the solution way more robust. Merging it right now. Appreciate the contribution! 👍

@zanllp zanllp merged commit 847aec6 into zanllp:main May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants