Save generated images as jpg

This commit is contained in:
Moritz Brückner 2019-12-21 20:51:16 +01:00
parent 8c28019f36
commit 1f9a4eaa0a

View file

@ -1593,8 +1593,8 @@ def make_texture(image_node, tex_name, matname=None):
if not os.path.exists(unpack_path):
os.makedirs(unpack_path)
filepath = os.path.join(unpack_path, image.name + ".png")
arm.utils.convert_image(image, filepath, "PNG")
filepath = os.path.join(unpack_path, image.name + ".jpg")
arm.utils.convert_image(image, filepath, "JPEG")
else:
arm.log.warn(matname + '/' + image.name + ' - invalid file path')