Skip to content

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

@Arkiras

Description

@Arkiras

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    🍀 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions