would it be possible to compress gifs directly in shareX? I like to share files directly from shareX but the files are always so big so it takes forever to load them in e.g discord. I also use a 1440p monitor which makes the gifs huge, being able to change the resolution would be nice too.
This is why everybody using video recording instead of gif recording. Which makes extremely small files compared to gif and be able to playback in browsers.
would it be possible to compress gifs directly in shareX?
You can use After Capture Tasks - Perform Actions and setup the Task Settings - Actions menu to include the open source compression tool FileOptimizer (http://nikkhokkho.sourceforge.net/static.php?page=FileOptimizer)
... this should reliably save between 5% and 20% from the original file size.
Jaex is right, however. Despite some serious improvements with this format, the h.265 video recording tools are way (literally 20 years) ahead of .GIF compression.
If you need to compress something losslessly, I recommend PNGOptimizer (https://github.com/hadrien-psydk/pngoptimizer), which will convert your GIF into animated PNG format, which has better compression (you'll save ~30%) but isn't broadly supported.
Apparently, ffmpeg has gif compression features
https://superuser.com/a/556031
https://superuser.com/questions/1049606/reduce-generated-gif-size-using-ffmpeg
http://cassidy.codes/blog/2017/04/25/ffmpeg-frames-to-gif-optimization/
my setting, size reduce about 10-30%