9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-29 11:59:11 +00:00

优化png优化器

This commit is contained in:
XiaoMoMi
2025-10-27 05:48:46 +08:00
parent cc59ee1ad2
commit 3958be08b6
7 changed files with 5 additions and 17 deletions

View File

@@ -89,7 +89,7 @@ resource-pack:
# Fix images that are not within the texture atlas. It is unreasonable to always rely on plugins to fix your mistakes.
# You should strive to make your resource pack more standardized after gaining some experience with resource packs.
fix-atlas: true
# Optimize your resource pack by reducing its size without any noticeable quality loss.
# Optimize your resource pack by reducing its size without any quality loss.
optimization:
enable: false
# .png
@@ -97,7 +97,7 @@ resource-pack:
enable: true
# Use Zopfli for PNG compression (very slow). More iterations = smaller files.
# In fact, setting the number of iterations between 4 and 8 is generally sufficient. Increasing it further rarely leads to significant optimization in size.
zopfli-iterations: 0 # 0 = disable
zopfli-iterations: 6 # 0 = disable
# If your image is special, for example, containing color pixels that need to be specifically recognized by a shader, the optimization might break it. You can add exclusions here.
exclude:
- assets/minecraft/textures/block/do_not_optimize.png

View File

@@ -20,7 +20,6 @@ caffeine=${caffeine_version}
slf4j-api=${slf4j_version}
zstd-jni=${zstd_version}
commons-io=${commons_io_version}
commons-imaging=${commons_imaging_version}
commons-lang3=${commons_lang3_version}
byte-buddy=${byte_buddy_version}
snake-yaml=${snake_yaml_version}