Explorar el Código

Relax the file size limitation on the web UI

nagadomi hace 9 años
padre
commit
0d31657874
Se han modificado 8 ficheros con 10 adiciones y 10 borrados
  1. 1 1
      assets/index.html
  2. 1 1
      assets/index.pt.html
  3. 1 1
      assets/index.ru.html
  4. 3 3
      web.lua
  5. 1 1
      webgen/locales/en.yml
  6. 1 1
      webgen/locales/ja.yml
  7. 1 1
      webgen/locales/pt.yml
  8. 1 1
      webgen/locales/ru.yml

+ 1 - 1
assets/index.html

@@ -54,7 +54,7 @@
 	      <input type="file" id="file" name="file"></div>
 	  </div>
 	  <div class="option-hint">
-	    Limits: Size: 2MB, Noise Reduction: 2560x2560px, Upscaling: 1280x1280px.
+	    Limits: Size: 3MB, Noise Reduction: 2560x2560px, Upscaling: 1280x1280px.
 	  </div>
 	</div>
 	<div class="option-box">

+ 1 - 1
assets/index.pt.html

@@ -54,7 +54,7 @@
 	      <input type="file" id="file" name="file"></div>
 	  </div>
 	  <div class="option-hint">
-	    Limites: Tamanho: 2MB, Redução de ruído: 2560x2560px, Aumento de escala: 1280x1280px.
+	    Limites: Tamanho: 3MB, Redução de ruído: 2560x2560px, Aumento de escala: 1280x1280px.
 	  </div>
 	</div>
 	<div class="option-box">

+ 1 - 1
assets/index.ru.html

@@ -54,7 +54,7 @@
 	      <input type="file" id="file" name="file"></div>
 	  </div>
 	  <div class="option-hint">
-	    Макс. размер файла — 2MB, устранение шума — макс. 2560x2560px, апскейл — 1280x1280px.
+	    Макс. размер файла — 3MB, устранение шума — макс. 2560x2560px, апскейл — 1280x1280px.
 	  </div>
 	</div>
 	<div class="option-box">

+ 3 - 3
web.lua

@@ -49,12 +49,12 @@ local CACHE_DIR = path.join(ROOT, "cache")
 local MAX_NOISE_IMAGE = 2560 * 2560
 local MAX_SCALE_IMAGE = 1280 * 1280
 local CURL_OPTIONS = {
-   request_timeout = 15,
-   connect_timeout = 10,
+   request_timeout = 60,
+   connect_timeout = 60,
    allow_redirects = true,
    max_redirects = 2
 }
-local CURL_MAX_SIZE = 2 * 1024 * 1024
+local CURL_MAX_SIZE = 3 * 1024 * 1024
 
 local function valid_size(x, scale)
    if scale == 0 then

+ 1 - 1
webgen/locales/en.yml

@@ -6,7 +6,7 @@ go_to_github: Go to GitHub
 image_choosing: Image choosing
 type_url: Type URL
 choose_file: Or choose a file
-file_limits: "Limits: Size: 2MB, Noise Reduction: 2560x2560px, Upscaling: 1280x1280px."
+file_limits: "Limits: Size: 3MB, Noise Reduction: 2560x2560px, Upscaling: 1280x1280px."
 style: Style
 artwork: Artwork
 photo: Photo

+ 1 - 1
webgen/locales/ja.yml

@@ -6,7 +6,7 @@ go_to_github: プロジェクトページ(GitHub)
 image_choosing: 画像を選択
 type_url: URLを入力
 choose_file: ファイルを選択
-file_limits: "制限: サイズ: 2MB, ノイズ除去: 2560x2560px, 拡大(前): 1280x1280px."
+file_limits: "制限: サイズ: 3MB, ノイズ除去: 2560x2560px, 拡大(前): 1280x1280px."
 style: スタイル
 artwork: イラスト
 photo: 写真

+ 1 - 1
webgen/locales/pt.yml

@@ -6,7 +6,7 @@ go_to_github: Ir para Github
 image_choosing: Imagem
 type_url: URL
 choose_file: ARQUIVO
-file_limits: "Limites: Tamanho: 2MB, Redução de ruído: 2560x2560px, Aumento de escala: 1280x1280px."
+file_limits: "Limites: Tamanho: 3MB, Redução de ruído: 2560x2560px, Aumento de escala: 1280x1280px."
 style: Estilo
 artwork: Arte
 photo: Foto

+ 1 - 1
webgen/locales/ru.yml

@@ -6,7 +6,7 @@ go_to_github: Перейти на GitHub
 image_choosing: Выбор изображения
 type_url: Укажите URL
 choose_file: Либо выберите файл
-file_limits: "Макс. размер файла — 2MB, устранение шума — макс. 2560x2560px, апскейл — 1280x1280px."
+file_limits: "Макс. размер файла — 3MB, устранение шума — макс. 2560x2560px, апскейл — 1280x1280px."
 style: Тип изображения
 artwork: Арт
 photo: Фотография