Documentation ¶
Overview ¶
Package exiftag defines constants used for TIFF and Exif files.
Each constant consists of an IFD where it belongs, and a 16-bit tag identifier.
Index ¶
Constants ¶
View Source
const ( DirShift = 20 Tiff = 0 << DirShift // tags in IFDs Exif = 1 << DirShift // tags in Exif sub-IFD GPS = 2 << DirShift // tags in GPS sub-IFD Interop = 3 << DirShift // tags in interop sub-IFD // mask for directory part DirMask = 0xFF << DirShift // mask of actual tags NameMask = 0x000FFFF )
View Source
const ( // Image width - SHORT or LONG (1) ImageWidth = Tiff | 0x0100 // Image height - SHORT or LONG (1) ImageLength = Tiff | 0x0101 // Number of bits per component - SHORT (3) BitsPerSample = Tiff | 0x0102 // Compression scheme - SHORT (1) Compression = Tiff | 0x0103 // Pixel composition - SHORT (1) PhotometricInterpretation = Tiff | 0x0106 // Orientation of image - SHORT (1) Orientation = Tiff | 0x0112 // Number of components - SHORT (1) SamplesPerPixel = Tiff | 0x0115 // Image data arrangement - SHORT (1) PlanarConfiguration = Tiff | 0x011c // Subsampling ratio of Y to C - SHORT (2) YCbCrSubSampling = Tiff | 0x0212 // Y and C positioning - SHORT (1) YCbCrPositioning = Tiff | 0x0213 // Image resolution in width direction - RATIONAL (1) XResolution = Tiff | 0x011a // Image resolution in height direction - RATIONAL (1) YResolution = Tiff | 0x011b // Unit of X and Y resolution - SHORT (1) ResolutionUnit = Tiff | 0x0128 // Image data location - SHORT or LONG (*S) StripOffsets = Tiff | 0x0111 // Number of rows per strip - SHORT or LONG (1) RowsPerStrip = Tiff | 0x0116 // Bytes per compressed strip - SHORT or LONG (*S) StripByteCounts = Tiff | 0x0117 // Offset to JPEG SOI - LONG (1) JPEGInterchangeFormat = Tiff | 0x0201 // Bytes of JPEG data - LONG (1) JPEGInterchangeFormatLength = Tiff | 0x0202 // Transfer function - SHORT (3*256) TransferFunction = Tiff | 0x012d // White point chromaticity - RATIONAL (2) WhitePoint = Tiff | 0x013e // Chromaticities of primaries - RATIONAL (6) PrimaryChromaticities = Tiff | 0x013f // Color space transformation matrix coefficients - RATIONAL (3) YCbCrCoefficients = Tiff | 0x0211 // Pair of black and white reference values - RATIONAL (6) ReferenceBlackWhite = Tiff | 0x0214 // File change date and time - ASCII (20) DateTime = Tiff | 0x0132 // Image title - ASCII (Any) ImageDescription = Tiff | 0x010e // Image input equipment manufacturer - ASCII (Any) Make = Tiff | 0x010f // Image input equipment model - ASCII (Any) Model = Tiff | 0x0110 // Software used - ASCII (Any) Software = Tiff | 0x0131 // Person who created the image - ASCII (Any) Artist = Tiff | 0x013b // Copyright holder - ASCII (Any) Copyright = Tiff | 0x8298 // Exif version - UNDEFINED (4) ExifVersion = Exif | 0x9000 // Supported Flashpix version - UNDEFINED (4) FlashpixVersion = Exif | 0xa000 // Color space information - SHORT (1) ColorSpace = Exif | 0xa001 // Meaning of each component - UNDEFINED (4) ComponentsConfiguration = Exif | 0x9101 // Image compression mode - RATIONAL (1) CompressedBitsPerPixel = Exif | 0x9102 // Valid image width - SHORT or LONG (1) PixelXDimension = Exif | 0xa002 // Valid image height - SHORT or LONG (1) PixelYDimension = Exif | 0xa003 // Manufacturer notes - UNDEFINED (Any) MakerNote = Exif | 0x927c // User comments - UNDEFINED (Any) UserComment = Exif | 0x9286 // Related audio file - ASCII (13) RelatedSoundFile = Exif | 0xa004 // Date and time of original data generation - ASCII (20) DateTimeOriginal = Exif | 0x9003 // Date and time of digital data generation - ASCII (20) DateTimeDigitized = Exif | 0x9004 // DateTime subseconds - ASCII (Any) SubSecTime = Exif | 0x9290 // DateTimeOriginal subseconds - ASCII (Any) SubSecTimeOriginal = Exif | 0x9291 // DateTimeDigitized subseconds - ASCII (Any) SubSecTimeDigitized = Exif | 0x9292 // Exposure time - RATIONAL (1) ExposureTime = Exif | 0x829a // F number - RATIONAL (1) FNumber = Exif | 0x829d // Exposure program - SHORT (1) ExposureProgram = Exif | 0x8822 // Spectral sensitivity - ASCII (Any) SpectralSensitivity = Exif | 0x8824 // ISO speed rating - SHORT (Any) ISOSpeedRatings = Exif | 0x8827 // Optoelectric conversion factor - UNDEFINED (Any) OECF = Exif | 0x8828 // Shutter speed - SRATIONAL (1) ShutterSpeedValue = Exif | 0x9201 // Aperture - RATIONAL (1) ApertureValue = Exif | 0x9202 // Brightness - SRATIONAL (1) BrightnessValue = Exif | 0x9203 // Exposure bias - SRATIONAL (1) ExposureBiasValue = Exif | 0x9204 // Maximum lens aperture - RATIONAL (1) MaxApertureValue = Exif | 0x9205 // Subject distance - RATIONAL (1) SubjectDistance = Exif | 0x9206 // Metering mode - SHORT (1) MeteringMode = Exif | 0x9207 // Light source - SHORT (1) LightSource = Exif | 0x9208 // Flash - SHORT (1) Flash = Exif | 0x9209 // Lens focal length - RATIONAL (1) FocalLength = Exif | 0x920a // Subject area - SHORT (2 or 3 or 4) SubjectArea = Exif | 0x9214 // Flash energy - RATIONAL (1) FlashEnergy = Exif | 0xa20b // Spatial frequency response - UNDEFINED (Any) SpatialFrequencyResponse = Exif | 0xa20c // Focal plane X resolution - RATIONAL (1) FocalPlaneXResolution = Exif | 0xa20e // Focal plane Y resolution - RATIONAL (1) FocalPlaneYResolution = Exif | 0xa20f // Focal plane resolution unit - SHORT (1) FocalPlaneResolutionUnit = Exif | 0xa210 // Subject location - SHORT (2) SubjectLocation = Exif | 0xa214 // Exposure index - RATIONAL (1) ExposureIndex = Exif | 0xa215 // Sensing method - SHORT (1) SensingMethod = Exif | 0xa217 // File source - UNDEFINED (1) FileSource = Exif | 0xa300 // Scene type - UNDEFINED (1) SceneType = Exif | 0xa301 // CFA pattern - UNDEFINED (Any) CFAPattern = Exif | 0xa302 // Custom image processing - SHORT (1) CustomRendered = Exif | 0xa401 // Exposure mode - SHORT (1) ExposureMode = Exif | 0xa402 // White balance - SHORT (1) WhiteBalance = Exif | 0xa403 // Digital zoom ratio - RATIONAL (1) DigitalZoomRatio = Exif | 0xa404 // Focal length in 35 mm film - SHORT (1) FocalLengthIn35mmFilm = Exif | 0xa405 // Scene capture type - SHORT (1) SceneCaptureType = Exif | 0xa406 // Gain control - RATIONAL (1) GainControl = Exif | 0xa407 // Contrast - SHORT (1) Contrast = Exif | 0xa408 // Saturation - SHORT (1) Saturation = Exif | 0xa409 // Sharpness - SHORT (1) Sharpness = Exif | 0xa40a // Device settings description - UNDEFINED (Any) DeviceSettingDescription = Exif | 0xa40b // Subject distance range - SHORT (1) SubjectDistanceRange = Exif | 0xa40c // Unique image ID - ASCII (33) ImageUniqueID = Exif | 0xa420 // GPS tag version - BYTE (4) GPSVersionID = GPS | 0x0000 // North or South Latitude - ASCII (2) GPSLatitudeRef = GPS | 0x0001 // Latitude - RATIONAL (3) GPSLatitude = GPS | 0x0002 // East or West Longitude - ASCII (2) GPSLongitudeRef = GPS | 0x0003 // Longitude - RATIONAL (3) GPSLongitude = GPS | 0x0004 // Altitude reference - BYTE (1) GPSAltitudeRef = GPS | 0x0005 // Altitude - RATIONAL (1) GPSAltitude = GPS | 0x0006 // GPS time (atomic clock) - RATIONAL (3) GPSTimeStamp = GPS | 0x0007 // GPS satellites used for measurement - ASCII (Any) GPSSatellites = GPS | 0x0008 // GPS receiver status - ASCII (2) GPSStatus = GPS | 0x0009 // GPS measurement mode - ASCII (2) GPSMeasureMode = GPS | 0x000a // Measurement precision - RATIONAL (1) GPSDOP = GPS | 0x000b // Speed unit - ASCII (2) GPSSpeedRef = GPS | 0x000c // Speed of GPS receiver - RATIONAL (1) GPSSpeed = GPS | 0x000d // Reference for direction of movement - ASCII (2) GPSTrackRef = GPS | 0x000e // Direction of movement - RATIONAL (1) GPSTrack = GPS | 0x000f // Reference for direction of image - ASCII (2) GPSImgDirectionRef = GPS | 0x0010 // Direction of image - RATIONAL (1) GPSImgDirection = GPS | 0x0011 // Geodetic survey data used - ASCII (Any) GPSMapDatum = GPS | 0x0012 // Reference for latitude of destination - ASCII (2) GPSDestLatitudeRef = GPS | 0x0013 // Latitude of destination - RATIONAL (3) GPSDestLatitude = GPS | 0x0014 // Reference for longitude of destination - ASCII (2) GPSDestLongitudeRef = GPS | 0x0015 // Longitude of destination - RATIONAL (3) GPSDestLongitude = GPS | 0x0016 // Reference for bearing of destination - ASCII (2) GPSDestBearingRef = GPS | 0x0017 // Bearing of destination - RATIONAL (1) GPSDestBearing = GPS | 0x0018 // Reference for distance to destination - ASCII (2) GPSDestDistanceRef = GPS | 0x0019 // Distance to destination - RATIONAL (1) GPSDestDistance = GPS | 0x001a // Name of GPS processing method - UNDEFINED (Any) GPSProcessingMethod = GPS | 0x001b // Name of GPS area - UNDEFINED (Any) GPSAreaInformation = GPS | 0x001c // GPS date - ASCII (11) GPSDateStamp = GPS | 0x001d // GPS differential correction - SHORT (1) GPSDifferential = GPS | 0x001e )
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.