9
0
mirror of https://github.com/Kas-tle/java2bedrock.sh.git synced 2025-12-19 14:59:13 +00:00

Update converter.sh

This commit is contained in:
Kas-tle
2022-08-22 15:59:03 -07:00
committed by GitHub
parent 925572fe3b
commit fbd052e237

View File

@@ -410,7 +410,7 @@ convert -size 16x16 xc:\#FFFFFF ./assets/minecraft/textures/0.png
# make sure we crop all mcmeta associated png files
status_message process "Cropping animated textures"
for i in $(find ./assets/**/textures -type f -name "*.mcmeta" | sed 's/\.mcmeta//'); do
convert ${i} -set option:distort:viewport "%[fx:min(w,h)]x%[fx:min(w,h)]" -distort affine "0,0 0,0" ${i} 2> /dev/null
convert ${i} -set option:distort:viewport "%[fx:min(w,h)]x%[fx:min(w,h)]" -distort affine "0,0 0,0" -define png:format=png8 ${i} 2> /dev/null
done
status_message completion "Initial pack setup complete\n"