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
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}