Class JpegExifData
Namespace: Aspose.Imaging.Exif
Assembly: Aspose.Imaging.dll (25.2.0)
EXIF data container for jpeg files.
[JsonObject(MemberSerialization.OptIn)]
public sealed class JpegExifData : ExifData
Inheritance
object ← TiffDataTypeController ← ExifData ← JpegExifData
Inherited Members
ExifData.RemoveTag(ExifProperties), ExifData.RemoveTag(ushort), ExifData.IsBigEndian, ExifData.Make, ExifData.ApertureValue, ExifData.BodySerialNumber, ExifData.BrightnessValue, ExifData.CFAPattern, ExifData.CameraOwnerName, ExifData.ColorSpace, ExifData.ComponentsConfiguration, ExifData.CompressedBitsPerPixel, ExifData.Contrast, ExifData.CustomRendered, ExifData.DateTimeDigitized, ExifData.DateTimeOriginal, ExifData.DeviceSettingDescription, ExifData.DigitalZoomRatio, ExifData.ExifVersion, ExifData.ExposureBiasValue, ExifData.ExposureIndex, ExifData.ExposureMode, ExifData.ExposureProgram, ExifData.ExposureTime, ExifData.FNumber, ExifData.FileSource, ExifData.Flash, ExifData.FlashEnergy, ExifData.FlashpixVersion, ExifData.FocalLength, ExifData.FocalLengthIn35MmFilm, ExifData.FocalPlaneResolutionUnit, ExifData.FocalPlaneXResolution, ExifData.FocalPlaneYResolution, ExifData.GPSAltitude, ExifData.GPSAltitudeRef, ExifData.GPSAreaInformation, ExifData.GPSDOP, ExifData.GPSDestBearing, ExifData.GPSDestBearingRef, ExifData.GPSDestDistance, ExifData.GPSDestDistanceRef, ExifData.GPSDestLatitude, ExifData.GPSDestLatitudeRef, ExifData.GPSDestLongitude, ExifData.GPSDestLongitudeRef, ExifData.GPSDifferential, ExifData.GPSImgDirection, ExifData.GPSImgDirectionRef, ExifData.GPSDateStamp, ExifData.GPSLatitude, ExifData.GPSLatitudeRef, ExifData.GPSLongitude, ExifData.GPSLongitudeRef, ExifData.GPSMapDatum, ExifData.GPSMeasureMode, ExifData.GPSProcessingMethod, ExifData.GPSSatellites, ExifData.GPSSpeed, ExifData.GPSSpeedRef, ExifData.GPSStatus, ExifData.GPSTimestamp, ExifData.GPSTrack, ExifData.GPSTrackRef, ExifData.GPSVersionID, ExifData.GainControl, ExifData.Gamma, ExifData.ISOSpeed, ExifData.ISOSpeedLatitudeYYY, ExifData.ISOSpeedLatitudeZZZ, ExifData.PhotographicSensitivity, ExifData.ImageUniqueID, ExifData.LensMake, ExifData.LensModel, ExifData.LensSerialNumber, ExifData.LensSpecification, ExifData.LightSource, ExifData.MakerNoteData, ExifData.MakerNoteRawData, ExifData.MakerNotes, ExifData.MaxApertureValue, ExifData.MeteringMode, ExifData.OECF, ExifData.Orientation, ExifData.PixelXDimension, ExifData.PixelYDimension, ExifData.Properties, ExifData.RecommendedExposureIndex, ExifData.RelatedSoundFile, ExifData.Saturation, ExifData.SceneCaptureType, ExifData.SceneType, ExifData.SensingMethod, ExifData.SensitivityType, ExifData.Sharpness, ExifData.ShutterSpeedValue, ExifData.SpatialFrequencyResponse, ExifData.SpectralSensitivity, ExifData.StandardOutputSensitivity, ExifData.SubjectArea, ExifData.SubjectDistance, ExifData.SubjectDistanceRange, ExifData.SubjectLocation, ExifData.SubsecTime, ExifData.SubsecTimeDigitized, ExifData.SubsecTimeOriginal, ExifData.UserComment, ExifData.WhiteBalance, ExifData.WhitePoint, ExifData.CommonTags, ExifData.ExifTags, ExifData.GPSTags, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
JpegExifData()
Initializes a new instance of the Aspose.Imaging.Exif.JpegExifData class.
[JsonConstructor]
public JpegExifData()
JpegExifData(TiffDataType[])
Initializes a new instance of the Aspose.Imaging.Exif.JpegExifData class with data from array.
public JpegExifData(TiffDataType[] exifdata)
Parameters
exifdata
TiffDataType[]
Array of EXIF tags together with common and GPS tags.
JpegExifData(TiffDataType[], TiffDataType[], TiffDataType[])
Initializes a new instance of the Aspose.Imaging.Exif.JpegExifData class with data from array.
public JpegExifData(TiffDataType[] commonTags, TiffDataType[] exifTags, TiffDataType[] gpsTags)
Parameters
commonTags
TiffDataType[]
The common tags.
exifTags
TiffDataType[]
The EXIF tags.
gpsTags
TiffDataType[]
The GPS tags.
JpegExifData(ExifData)
Initializes a new instance of the Aspose.Imaging.Exif.JpegExifData class with data from array.
public JpegExifData(ExifData exifdata)
Parameters
exifdata
ExifData
Array of EXIF tags together with common and GPS tags.
Fields
MaxExifSegmentSize
The maximum EXIF segment size in bytes allowed.
public const int MaxExifSegmentSize = 65528
Field Value
Properties
Artist
Gets or sets the artist.
public string Artist { get; set; }
Property Value
BitsPerSample
Gets or sets the bits per sample.
public ushort[] BitsPerSample { get; set; }
Property Value
ushort[]
Compression
Gets or sets the compression.
public ushort Compression { get; set; }
Property Value
Copyright
Gets or sets the copyright.
public string Copyright { get; set; }
Property Value
DateTime
Gets or sets the date time.
public string DateTime { get; set; }
Property Value
ImageDescription
Gets or sets the image description.
public string ImageDescription { get; set; }
Property Value
ImageLength
Gets or sets the image length.
public uint ImageLength { get; set; }
Property Value
ImageWidth
Gets or sets the image width.
public uint ImageWidth { get; set; }
Property Value
Model
Gets or sets the model.
public string Model { get; set; }
Property Value
PhotometricInterpretation
Gets or sets the photometric interpretation.
public ushort PhotometricInterpretation { get; set; }
Property Value
PlanarConfiguration
Gets or sets the planar configuration.
public ushort PlanarConfiguration { get; set; }
Property Value
PrimaryChromaticities
Gets or sets the chromaticity of the three primary colors of the image.
public TiffRational[] PrimaryChromaticities { get; set; }
Property Value
ReferenceBlackWhite
Gets or sets the reference black white.
public TiffRational[] ReferenceBlackWhite { get; set; }
Property Value
ResolutionUnit
Gets or sets the resolution unit.
public ExifUnit ResolutionUnit { get; set; }
Property Value
SamplesPerPixel
Gets or sets the samples per pixel.
public ushort SamplesPerPixel { get; set; }
Property Value
Software
Gets or sets the software.
public string Software { get; set; }
Property Value
Thumbnail
Gets or sets the thumbnail image.
public RasterImage Thumbnail { get; set; }
Property Value
TransferFunction
Gets or sets the transfer function.
public ushort[] TransferFunction { get; set; }
Property Value
ushort[]
XResolution
Gets or sets the x resolution.
public TiffRational XResolution { get; set; }
Property Value
YCbCrCoefficients
Gets or sets the matrix coefficients for transformation from RGB to YCbCr image data.
public TiffRational[] YCbCrCoefficients { get; set; }
Property Value
YCbCrPositioning
Gets or sets the position of chrominance components in relation to the luminance component.
public ExifYCbCrPositioning YCbCrPositioning { get; set; }
Property Value
YCbCrSubSampling
Gets or sets the sampling ratio of chrominance components in relation to the luminance component.
public ushort[] YCbCrSubSampling { get; set; }
Property Value
ushort[]
YResolution
Gets or sets the y resolution.
public TiffRational YResolution { get; set; }
Property Value
Methods
SerializeExifData()
Serializes the EXIF data. Writes the tags values and contents. The most influencing size tag is Thumbnail tag contents.
public byte[] SerializeExifData()
Returns
byte[]
The serialized EXIF data.
Remarks
The overall segment size must be less than or equal to MaxExifSegmentSize bytes in order to produce correct jpeg image. Hint: try to reduce the thumbnail size or change its compression in case you have too big EXIF section size.