Skip to content

Commit 3ff9252

Browse files
committed
forgot about channels
1 parent fbb0916 commit 3ff9252

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Solidify.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ bool solidify_main(const std::string& inputFileName, const std::string& outputFi
221221

222222
//std::cout << "Channels: " << spec.nchannels << " Alpha channel: " << spec.alpha_channel << std::endl;
223223

224-
spec.nchannels = grayscale ? 1 : 4; // Only write RGB channels
225-
spec.alpha_channel = 3; // No alpha channel
224+
spec.nchannels = grayscale ? 1 : 3; // Only write RGB channels
225+
spec.alpha_channel = -1; // No alpha channel
226226

227227
out->open(outputFileName, spec, ImageOutput::Create);
228228

0 commit comments

Comments
 (0)