Skip to content

Commit 155bdbe

Browse files
Added CICP profile to image metadata
1 parent 8825a42 commit 155bdbe

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

src/ImageSharp/Metadata/ImageFrameMetadata.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Licensed under the Six Labors Split License.
33

44
using SixLabors.ImageSharp.Formats;
5+
using SixLabors.ImageSharp.Metadata.Profiles.CICP;
56
using SixLabors.ImageSharp.Metadata.Profiles.Exif;
67
using SixLabors.ImageSharp.Metadata.Profiles.Icc;
78
using SixLabors.ImageSharp.Metadata.Profiles.Iptc;
@@ -43,6 +44,7 @@ internal ImageFrameMetadata(ImageFrameMetadata other)
4344
this.IccProfile = other.IccProfile?.DeepClone();
4445
this.IptcProfile = other.IptcProfile?.DeepClone();
4546
this.XmpProfile = other.XmpProfile?.DeepClone();
47+
this.CicpProfile = other.CicpProfile?.DeepClone();
4648
}
4749

4850
/// <summary>
@@ -65,6 +67,11 @@ internal ImageFrameMetadata(ImageFrameMetadata other)
6567
/// </summary>
6668
public IptcProfile? IptcProfile { get; set; }
6769

70+
/// <summary>
71+
/// Gets or sets the CICP profile
72+
/// </summary>
73+
public CicpProfile? CicpProfile { get; set; }
74+
6875
/// <inheritdoc/>
6976
public ImageFrameMetadata DeepClone() => new(this);
7077

src/ImageSharp/Metadata/ImageMetadata.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Licensed under the Six Labors Split License.
33

44
using SixLabors.ImageSharp.Formats;
5+
using SixLabors.ImageSharp.Metadata.Profiles.CICP;
56
using SixLabors.ImageSharp.Metadata.Profiles.Exif;
67
using SixLabors.ImageSharp.Metadata.Profiles.Icc;
78
using SixLabors.ImageSharp.Metadata.Profiles.Iptc;
@@ -68,6 +69,7 @@ private ImageMetadata(ImageMetadata other)
6869
this.IccProfile = other.IccProfile?.DeepClone();
6970
this.IptcProfile = other.IptcProfile?.DeepClone();
7071
this.XmpProfile = other.XmpProfile?.DeepClone();
72+
this.CicpProfile = other.CicpProfile?.DeepClone();
7173

7274
// NOTE: This clone is actually shallow but we share the same format
7375
// instances for all images in the configuration.
@@ -157,6 +159,11 @@ public double VerticalResolution
157159
/// </summary>
158160
public IptcProfile? IptcProfile { get; set; }
159161

162+
/// <summary>
163+
/// Gets or sets the CICP profile.
164+
/// </summary>
165+
public CicpProfile? CicpProfile { get; set; }
166+
160167
/// <summary>
161168
/// Gets the original format, if any, the image was decode from.
162169
/// </summary>

0 commit comments

Comments
 (0)