Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Search images by aspect ratio #766

Open
3 tasks done
Arkiras opened this issue Feb 1, 2025 · 0 comments
Open
3 tasks done

[Feature Request]: Search images by aspect ratio #766

Arkiras opened this issue Feb 1, 2025 · 0 comments
Labels
Priority: Low Doesn't require immediate attention TagStudio: Search The TagStudio search engine Type: Enhancement New feature or request

Comments

@Arkiras
Copy link

Arkiras commented Feb 1, 2025

Checklist

  • I am using an up-to-date version.
  • I have read the documentation.
  • I have searched existing issues.

Description

I sometimes find myself looking for images that fit a particular aspect ratio, for example landscape, portrait, and perfect square.

Solution

What I'd like to be able to do is define an aspect ratio range as a search term, for example something like:

If I wanted only square images I would search:

aspect_ratio:1

...images that were taller than they were wide:

aspect_ratio:<1

...images wider than they are tall:

aspect_ratio:>1

...and if I wanted images that were in a range, say standard non-ultrawide monitor aspect ratio:

aspect_ratio:1.6-1.77

A potential complication here is the fact that aspect ratios are sometimes written in multiple ways. In the above example I've written 1.6 and 1.77, which is the fractional width ratio to a height of 1; but those are also commonly referred to as 16:10 and 16:9. I feel using fractional width is easier to understand and write, and I think it just works better from a syntax standpoint (no colon required)

Alternatives

As an alternative, tags could simply be used. Automatically assigning a "portrait", "landscape", or "square" tag to images on import. This wouldn't be as granular but it provides the most basic functionality.

@Arkiras Arkiras added the Type: Enhancement New feature or request label Feb 1, 2025
@CyanVoxel CyanVoxel added TagStudio: Search The TagStudio search engine Priority: Low Doesn't require immediate attention labels Feb 2, 2025
@CyanVoxel CyanVoxel moved this to 🍀 Backlog in TagStudio Development Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Low Doesn't require immediate attention TagStudio: Search The TagStudio search engine Type: Enhancement New feature or request
Projects
Status: 🍀 Backlog
Development

No branches or pull requests

2 participants