read

fun JevImage.Companion.read(path: Path, reference: String? = null): JevImage(source)

An image read now from path. A file over the API's 16 MiB limit isn't read: the image carries that problem instead. These are Kotlin extensions on the companion; from Java, which would have to pass the companion explicitly, write JevImage.of(Files.readAllBytes(path)).


fun JevImage.Companion.read(file: File, reference: String? = null): JevImage(source)

An image read now from file, with the same limit.