Criar / gravar dados EXIF usando Magick.NET

Usando a biblioteca Magick.NET do ImageMagick, em C #, para adicionar metadados EXIF a um JPEG processado que atualmente não possui um perfil EXIF. Todas as tentativas de criar um perfil falharam:

 var newExifProfile = image.GetExifProfile();
 if (newExifProfile == null)
 {
    newExifProfile = new ExifProfile();
 }
 newExifProfile.SetValue(ExifTag.Copyright, "test");

ExifProfile tem outros construtores que aceitam um fluxo ou uma matriz de bytes, não fornecendo um cria uma exceção sempre que.SetValue() é chamado:

Object reference not set to an instance of an object.
at ImageMagick.ExifReader.GetBytes(UInt32 length)
at ImageMagick.ExifReader.Read(Byte[] data)
at ImageMagick.ExifProfile.SetValue(ExifTag tag, Object value)

Como o Magick.NET pode ser usado para gravar dados EXIF?

questionAnswers(1)

yourAnswerToTheQuestion