[MM-45504] Improve GIF preprocessing logic (#20595)

* Improve GIF preprocessing logic

* Prefer io to ioutil

* Avoid color palette allocation
Этот коммит содержится в:
Claudio Costa
2022-07-11 09:34:49 +02:00
коммит произвёл GitHub
родитель c3d2602dfe
Коммит 76583344c0
7 изменённых файлов: 133 добавлений и 88 удалений

Просмотреть файл

@@ -6367,6 +6367,10 @@
"id": "app.upload.upload_data.first_part_too_small.app_error",
"translation": "Failed to upload data. First part must be at least {{.Size}} Bytes."
},
{
"id": "app.upload.upload_data.gen_info.app_error",
"translation": "Failed to generate file info from uploaded data."
},
{
"id": "app.upload.upload_data.large_image.app_error",
"translation": "{{.Filename}} dimensions ({{.Width}} by {{.Height}} pixels) exceed the limits."