shards icon indicating copy to clipboard operation
shards copied to clipboard

FloatsToImage: should throw error when 1 < Channels > 4

Open ccfontes opened this issue 2 years ago • 0 comments

Describe the bug FloatsToImage truncates number of Channels to:

  • 4 when Channels parameter value is bigger than 4.
  • 1 when Channels parameter value is lower than 1.

To Reproduce

[1.0 1.0 1.0] | FloatsToImage(Channels: 0) | Log
;=> Image Width: 16 Height: 16 Channels: 1

[1.0 1.0 1.0] | FloatsToImage(Channels: 5) | Log
;=> Image Width: 16 Height: 16 Channels: 4

Expected behavior FloatsToImage should throw error when 1 < Channels > 4.

ccfontes avatar Oct 24 '23 06:10 ccfontes