My personal folder of reaction images that I use in conversation on Discord and various other chat platforms
Important
All image and feature requests have been migrated from issues to discussions
Table of Contents:
Outlined below is an overview of this repository's two branches, and some key folders within them:
master
branch:extras
folder:ChatAliases.config.json
file: a configuration file for use with a BetterDiscord plugin called ChatAliases. To use it, put the.plugin.js
file from the prior link into your BetterDiscord plugin folder, then reload the ChatAliases plugin. See warning below regarding use of this plugin!
images
folder: contains all of the reaction imagesscripts
folder: contains scripts and other files relating to the automatic generation and deployment of configs and the site that hosts the image filesbuild-extras.js
file: a script for automatically generating the above describedChatAliases.config.json
filebuild-pages.js
file: a script for automatically generating and deploying the site hosted through thegh-pages
branchtemplate.html
file: a template for theindex.html
files in the generated site, used by the above describedbuild-pages.js
script to ease in the generation of thegh-pages
branch
gh-pages
branch: used for hosting the site that provides links for all the images
Warning
I have not used or tested the ChatAliases plugin in multiple years now, so it isn't guaranteed to still be working. If you try it out and find that it does still work, please create a new discussion to let me know so that I can update this note
Outlined below are some steps that have been taken to reduce the storage size of the image files:
- Still images are saved using the JPEG format to take advantage of JPEG's file compression
- GIFs have been limited to a maximum of 50 unique colors per frame
- Lossy compression is applied to every frame of each GIF
- Images are scaled to a height of 200 pixels to reduce file size and to reduce the vertical space taken up by the image when sent in a chat
All files in the images
folder can be linked to using https://pics.cheesits456.dev/name
, where name
is replaced with the name of the image you wish to link to. In order to reduce the amount of unneeded text in your message, the gh-pages
repository is generated in such a way that you don't need to include the file extension for it to properly link to and embed the image in a chat program. This has the added benefit that you don't have to know in advance whether the image is animated or not, so you won't have to remember whether to use .jpeg
or .gif
in your link.
Link: | Result: |
---|---|
https://pics.cheesits456.dev/dab | |
https://pics.cheesits456.dev/dunno | |
https://pics.cheesits456.dev/no |