readImageSource

fun BufferedSource.readImageSource(): ImageSource(source)

Reads the whole of this source into an image source, consuming it.

Every byte lands in memory at once, the way readMediaSource reads them.