---
title: "peekImage"
sidebar_label: "peekImage"
description: "Kotlin binding reference: peekImage."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Io](index.md)/[peekImage](peekImage.md)

# peekImage

[common]\
fun [peekImage](peekImage.md)(path: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)): [ImageInfo](../ImageInfo/index.md)

Read an image header from a file: its displayed height, width and channel count.

[common]\
fun [peekImage](peekImage.md)(bytes: [ByteArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html)): [ImageInfo](../ImageInfo/index.md)

Read an image header from an encoded payload in memory.