Skip to content

Commit 90b654e

Browse files
committed
Image Processing Performance Tweaks (Compress generated file only once at final export)
1 parent c9fbcc3 commit 90b654e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/DzBridgeAction.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5853,7 +5853,9 @@ bool DzBridgeAction::combineDiffuseAndAlphaMaps(DzMaterial* Material)
58535853
// save out file
58545854
QString tempPath = dzApp->getTempPath().replace("\\", "/");
58555855
QString outfile = tempPath + "/" + stemDiffuse + "+alpha_"+ stemAlpha + ".png";
5856-
dzApp->getImageMgr()->saveImage(outfile, outputImage);
5856+
//dzApp->getImageMgr()->saveImage(outfile, outputImage);
5857+
// DB, 2023-10-27: Save with fastest settings
5858+
outputImage.save(outfile, 0, 100);
58575859

58585860
// create Undo Data
58595861
DiffuseAndAlphaMapsUndoData undoData;
@@ -5918,7 +5920,9 @@ bool DzBridgeAction::multiplyTextureValues(DzMaterial* material)
59185920
multiplyImageByColorMultithreaded(image, colorValue);
59195921

59205922
// save out file
5921-
dzApp->getImageMgr()->saveImage(outfile, image);
5923+
// dzApp->getImageMgr()->saveImage(outfile, image);
5924+
// DB, 2023-10-27: Save with fastest settings
5925+
image.save(outfile, 0, 100);
59225926

59235927
// create undo record
59245928
undoData.textureProperty = colorProperty;
@@ -5951,7 +5955,9 @@ bool DzBridgeAction::multiplyTextureValues(DzMaterial* material)
59515955
multiplyImageByStrengthMultithreaded(image, numericValue);
59525956

59535957
// save out file
5954-
dzApp->getImageMgr()->saveImage(outfile, image);
5958+
// dzApp->getImageMgr()->saveImage(outfile, image);
5959+
// DB, 2023-10-27: Save with fastest settings
5960+
image.save(outfile, 0, 100);
59555961

59565962
// create undo record
59575963
undoData.textureProperty = numericProperty;

0 commit comments

Comments
 (0)