igorkasyanchuk/active_storage_validations

[Validator] Add new aspects ratios like `aX`

Offen

#375 geöffnet am 18.04.2025

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Ruby (148 Forks)github user discovery
enhancementgood first issue

Repository-Metriken

Stars
 (1.179 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

AX (a1, a2, ...) ratio are approximatively 1:1.4142.

Would be a great idea to have some new aspect_ratios, like:

  • AX, AX_portrait, AX_landscape

AX being AX_portrait and AX_landscape allowed.

Since all AX share the same aspect ratio, we should recognise the AX / AX_landscape / AX_portait pattern, and validate accordingly.

Contributor Guide