readImageDPI

fun readImageDPI(imageFile: File, logSignature: String = DEFAULT_LOG_SIGNATURE): Int

Reads DPI metadata from an image file.

Return

The DPI value, or 300 as default if not found.

Parameters

imageFile

The image file to read DPI from.

logSignature

Signature prefix shown in logs to identify the caller context.


fun readImageDPI(imageBytes: ByteArray, logSignature: String = DEFAULT_LOG_SIGNATURE): Int

Reads DPI metadata from image bytes.

Return

The DPI value, or 300 as default if not found.

Parameters

imageBytes

The image bytes to read DPI from.

logSignature

Signature prefix shown in logs to identify the caller context.