Scenic.Assets.Stream.Image.from_binary

You're seeing just the function from_binary, go back to Scenic.Assets.Stream.Image module for more information.

Specs

from_binary(bin :: binary()) :: t() | {:error, :invalid}

Create a streamable image resource from a compressed image binary.

On success, this returns {:ok, img}

The supplied binary must be a valid jpeg or png format. If it is either invalid or an unrecognized format, this will return {:error, :invalid}