diff options
author | Iraquitan Cordeiro Filho <iraquitanfilho@gmail.com> | 2016-11-21 23:00:13 -0300 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2016-11-21 23:00:13 -0300 |
commit | 48d64f3f68bc861eda3732457b5d24d238cacc53 (patch) | |
tree | 0f710ba1787dc60f4f20748b4d783bee47aa2211 /i18n/en.json | |
parent | 9b7e2e50e3fd0a8b81a3cddc0f7240b894778c65 (diff) | |
download | chat-48d64f3f68bc861eda3732457b5d24d238cacc53.tar.gz chat-48d64f3f68bc861eda3732457b5d24d238cacc53.tar.bz2 chat-48d64f3f68bc861eda3732457b5d24d238cacc53.zip |
PLT-4277: Allow larger custom emojis by resizing (#4447)
Add function to resize image using resize.Thumbnail. Add function to
resize gif using previous function. Add function to convert image.Image
to image.Palleted. Add logic to identify image type and resize them if
they are larger than MaxEmojiHeight or MaxEmojiWidth. Also increase
MaxEmojiFileSize.
* fix: Add github.com/nfnt to vendor
* fix: Fix max file size and if logic in resizeEmoji
* test: Fix and add new tests for new resize feature
* fix: Fix and update translations to fit new feature
* fix: Add requested changes
Diffstat (limited to 'i18n/en.json')
-rw-r--r-- | i18n/en.json | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/i18n/en.json b/i18n/en.json index a5a1e5928..ab25e7466 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -791,7 +791,7 @@ }, { "id": "api.emoji.create.too_large.app_error", - "translation": "Unable to create emoji. Image must be less than 64 KB in size." + "translation": "Unable to create emoji. Image must be less than 1 MB in size." }, { "id": "api.emoji.delete.permissions.app_error", @@ -822,8 +822,20 @@ "translation": "Unable to create emoji. File must be a PNG, JPEG, or GIF." }, { - "id": "api.emoji.upload.large_image.app_error", - "translation": "Unable to create emoji. Image must be at most 128 by 128 pixels." + "id": "api.emoji.upload.large_image.decode_error", + "translation": "Unable to create emoji. An error occurred when trying to decode the image." + }, + { + "id": "api.emoji.upload.large_image.encode_error", + "translation": "Unable to create emoji. An error occurred when trying to encode the image." + }, + { + "id": "api.emoji.upload.large_image.gif_decode_error", + "translation": "Unable to create emoji. An error occurred when trying to decode the GIF image." + }, + { + "id": "api.emoji.upload.large_image.gif_encode_error", + "translation": "Unable to create emoji. An error occurred when trying to encode the GIF image." }, { "id": "api.file.get_file.public_disabled.app_error", |