summaryrefslogtreecommitdiffstats
path: root/api/file.go
diff options
context:
space:
mode:
authorIraquitan Cordeiro Filho <iraquitanfilho@gmail.com>2016-11-21 23:00:13 -0300
committerenahum <nahumhbl@gmail.com>2016-11-21 23:00:13 -0300
commit48d64f3f68bc861eda3732457b5d24d238cacc53 (patch)
tree0f710ba1787dc60f4f20748b4d783bee47aa2211 /api/file.go
parent9b7e2e50e3fd0a8b81a3cddc0f7240b894778c65 (diff)
downloadchat-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 'api/file.go')
0 files changed, 0 insertions, 0 deletions