as_bytes


Description:

[ Version ( since = "0.16.0" ) ]
public Bytes as_bytes (Bytes? bytes) throws Error

Saves the metadata to the stream by reading the stream into memory, copying this object's metadata into the image, then writing the image as a stream back out.

if bytes is null, a copy of the internal image with updated metadata will be returned.

Parameters:

this

An instance of [class@GExiv2.Metadata]

bytes

An image buffer to update the metadata on, nor null

Returns:

A newly allocated GBytes object containing the image with new metadata