

Screenshot Compression(截图压缩)对于经常截取大量截图但硬盘/SSD 剩余空间不足的玩家非常有用。默认设置可将文件大小减少 30%,且几乎看不出任何可见差异。不过,您可以通过调整配置选项来进一步提高压缩率,例如减少颜色或渐变的数量。
另一种有效的方法是降低截图的分辨率尺寸,同时保持纵横比。





所有可用的配置选项:
显示剧透
sendScreenshotCompressMessage 默认 false
是否在聊天栏中发送有关截图大小被压缩了多少的消息。
keepOriginalScreenshot 默认 false
是否将原始未压缩的截图保存在 ./screenshots/original/ 目录下。
compressionQuality 默认 0F,最小值 0F,最大值 1F
压缩截图的质量。0 表示最强压缩,1 表示最弱压缩。
screenshotResizePercentage 默认 100,最小值 1,最大值 100
默认为 100%,即禁用状态。将截取的截图调整为更低的分辨率,同时保持纵横比。数值越低,文件体积越小。
stripPngAlphaChannel 默认 true
是否移除截图的 Alpha 通道。这意味着 PNG 不支持透明度,但由于 Minecraft 截图本身没有透明背景,因此可以安全使用。
stripScreenshotMetadata 默认 false
是否保留截图的元数据。移除后,文件体积会略微减小。
reduceAmountOfColours 默认 false
限制图像中使用的颜色数量以提高压缩率。启用后,使用的颜色更少,这会减小文件体积,但可能会稍微改变图像的外观。
reducedColourAmount 默认 256,最小值 0,最大值 256
当启用“reduceAmountOfColours”时使用的颜色数量。
reduceGradient 默认 false
控制颜色梯度的减少以提高压缩率。启用后,通过平滑或添加噪点来简化颜色过渡,从而在保持视觉质量的同时减小文件体积。

启用压缩后保存的截图:


您可以自由地在任何整合包中使用此模组,只要下载源仍托管在 CurseForge 或 Modrinth 生态系统中即可。
Serilum.com 提供了所有可用模组的概览及更多信息。
如有问题、想法、建议或其他任何事项,请访问 GitHub 仓库。谢谢!


Screenshot Compression can be useful for players that take a lot of screenshots, but don't have a lot of space left on their HDD/SSD's. The default settings reduce file sizes by 30%, with barely any visible difference. There are however multiple config options available to increase that number, by for example reducing the amount of colours or gradients.
Another effective option is to reduce the screenshot dimensions while maintaining the aspect ratio.





All available config options:
Show Spoiler
sendScreenshotCompressMessage default false
Whether a message should be sent in the chat of how much the screenshot size was compressed.
keepOriginalScreenshot default false
If the original, uncompressed, screenshot should be saved in ./screenshots/original/.
compressionQuality default 0F, min 0F, max 1F
The quality of the compressed screenshot. 0 is the strongest compression, 1 the weakest.
screenshotResizePercentage default 100, min 1, max 100
By default on 100%, so disabled. Resize taken screenshots to a lower resolution, while maintaining the aspect ratio. A lower number, means a lower file size.
stripPngAlphaChannel default true
Whether the screenshot's alpha channel should be removed. This means the PNG doesn't support transparancy, but since Minecraft screenshots don't have that it's safe to use.
stripScreenshotMetadata default false
If the screenshot metadata should be kept or not. When removes, it lowers the file size slightly.
reduceAmountOfColours default false
Limits the number of colors used in the image to improve compression. When enabled, fewer colors are used, which reduces the file size but may alter the image’s appearance slightly.
reducedColourAmount default 256, min 0, max 256
The amount of colours that are used when 'reduceAmountOfColours' is enabled.
reduceGradient default false
Controls the reduction of color gradients to improve compression. When enabled, it simplifies color transitions, either by smoothing or adding noise, to reduce file size while maintaining visual quality.

A screenshot being saved with compression enabled:


You may freely use this mod in any modpack, as long as the download remains hosted within the CurseForge or Modrinth ecosystem.
Serilum.com contains an overview and more information on all mods available.
For issues, ideas, suggestions or anything else there is the Github repo. Thanks!
评论 0
登录后参与评分
还没有评论,来抢沙发吧