Parcourir la source

图片尺寸比例新增2:1和1:2两种类型

lh il y a 3 jours
Parent
commit
d14e6fbb6b
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      app/Consts/BaseConst.php

+ 6 - 0
app/Consts/BaseConst.php

@@ -127,6 +127,8 @@ class BaseConst
             '3:2' => ['width' => 2496, 'height' => 1664],
             '2:3' => ['width' => 1664, 'height' => 2496],
             '21:9' => ['width' => 3136, 'height' => 1344],
+            '2:1' => ['width' => 2048, 'height' => 1024],
+            '1:2' => ['width' => 1024, 'height' => 2048],
         ],
         '3k' => [
             '1:1' => ['width' => 3072, 'height' => 3072],
@@ -137,6 +139,8 @@ class BaseConst
             '2:3' => ['width' => 2496, 'height' => 3744],
             '3:2' => ['width' => 3744, 'height' => 2496],
             '21:9' => ['width' => 3440, 'height' => 1440],
+            '2:1' => ['width' => 3072, 'height' => 1536],
+            '1:2' => ['width' => 1536, 'height' => 3072],
         ],
         '4k' => [
             '1:1' => ['width' => 4096, 'height' => 4096],
@@ -147,6 +151,8 @@ class BaseConst
             '2:3' => ['width' => 3328, 'height' => 4992],
             '3:2' => ['width' => 4992, 'height' => 3328],
             '21:9' => ['width' => 6240, 'height' => 2656],
+            '2:1' => ['width' => 3840, 'height' => 1920],
+            '1:2' => ['width' => 1920, 'height' => 3840],
         ],
     ];