Skip to content

Commit 0822073

Browse files
Fix error to add transparency back to RGB images
1 parent 77f2362 commit 0822073

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wrapper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ def run_my_task(self, inputs, settings, outputs):
218218

219219
# list = settings['@user_input'] # List passed having the image data (base 64) from all layer
220220
background = cv.imread(inputs['Image'][0]['resource_path'], cv.IMREAD_UNCHANGED)
221+
background = cv.cvtColor(background, cv.COLOR_BGR2BGRA)
221222
output_list=settings['@user_input'] # List passed having the image data (base 64) from all layer
222223
# Output path
223224
outfile_path = outputs["ZIP"][0]['resource_path'] + ".zip"

0 commit comments

Comments
 (0)