igorkasyanchuk/active_storage_validations

[Validator] Add new aspects ratios like `aX`

Ouverte

#375 ouverte le 18 avr. 2025

 (0 commentaire) (0 réaction) (0 personne assignée)Ruby (148 forks)github user discovery
enhancementgood first issue

Métriques du dépôt

Stars
 (1 179 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.

Guide contributeur