1
0
Fork 0
mirror of synced 2024-09-28 07:22:53 +12:00

Relax the file size limitation on the web UI

This commit is contained in:
nagadomi 2016-02-07 06:01:53 +09:00
parent 122ffd37fe
commit 0d31657874
8 changed files with 10 additions and 10 deletions

View file

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

View file

@ -54,7 +54,7 @@
<input type="file" id="file" name="file"></div> <input type="file" id="file" name="file"></div>
</div> </div>
<div class="option-hint"> <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> </div>
<div class="option-box"> <div class="option-box">

View file

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

View file

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

View file

@ -6,7 +6,7 @@ go_to_github: Go to GitHub
image_choosing: Image choosing image_choosing: Image choosing
type_url: Type URL type_url: Type URL
choose_file: Or choose a file 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 style: Style
artwork: Artwork artwork: Artwork
photo: Photo photo: Photo

View file

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

View file

@ -6,7 +6,7 @@ go_to_github: Ir para Github
image_choosing: Imagem image_choosing: Imagem
type_url: URL type_url: URL
choose_file: ARQUIVO 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 style: Estilo
artwork: Arte artwork: Arte
photo: Foto photo: Foto

View file

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