writeExif

fun writeExif(jpeg: ByteArray, metadata: Map<TagInfo, String>): ByteArray

Writes EXIF data into the JPEG encoded image.

Return

The new JPEG encoded image bytes with the EXIF data written or the original image if the metadata is empty or none of the tags are supported/written.

Parameters

jpeg

The JPEG encoded image bytes.

metadata

A map that pairs the metadata tags and data to write in them.