igorkasyanchuk/active_storage_validations

[Validator] Add new aspects ratios like `aX`

開放

#375 建立於 2025年4月18日

 (0 則留言) (0 個反應) (0 位負責人)Ruby (148 個分叉)github user discovery
enhancementgood first issue

倉庫指標

星標
 (1,179 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南