Skip to content

Commit

Permalink
Fix single channel png e2p
Browse files Browse the repository at this point in the history
pillow does not accept hxwx1 numpy arrays, added squeeze to make it hxw for single channel images
  • Loading branch information
nikste authored and BrianPugh committed Dec 15, 2024
1 parent 472943a commit 5eabc97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion convert360
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ else:
raise NotImplementedError('Unknown convertion')

# Output image
Image.fromarray(out.astype(np.uint8)).save(args.o)
Image.fromarray(out.astype(np.uint8).squeeze()).save(args.o)

0 comments on commit 5eabc97

Please sign in to comment.