Skip to content

Commit 5a6cc38

Browse files
committed
fixed a typo
1 parent ed28922 commit 5a6cc38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

otherarch/sdcpp/sdtype_adapter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ sd_generation_outputs sdtype_generate(const sd_generation_inputs inputs)
567567
}
568568
int nx2, ny2, nc2;
569569
extraimage_buffer = kcpp_base64_decode(extra_image_data);
570-
input_extraimage_buffer = stbi_load_from_memory(extraimage_buffer.data(), extraimage_buffer.size(), &nx2, &ny2, &nc2, 1);
570+
input_extraimage_buffer = stbi_load_from_memory(extraimage_buffer.data(), extraimage_buffer.size(), &nx2, &ny2, &nc2, 3);
571571
// Resize the image
572572
int resok = stbir_resize_uint8(input_extraimage_buffer, nx2, ny2, 0, resized_extraimage_buf.data(), img2imgW, img2imgH, 0, 1);
573573
if (!resok) {

0 commit comments

Comments
 (0)