exif_tagname
Description
The exif_tagname of Exif for PHP gets the header name for an index.
Syntax
exif_tagname( int $index ): string|false
Parameters
index
The Tag ID for which a Tag Name will be looked up.
Return
Returns the header name, or false if index is not a defined EXIF tag id.
Examples
1 · index
<? $index = 11; $return = exif_tagname($index); echo $return;
ACDComment
2 · indexes
<? for($i = 0; $i <= 800; ++$i) { $index = $i; $return = exif_tagname($index); if($return) { echo "$index: $return\n"; } }
11: ACDComment 254: NewSubFile 255: SubFile 256: ImageWidth 257: ImageLength 258: BitsPerSample 259: Compression 262: PhotometricInterpretation 266: FillOrder 269: DocumentName 270: ImageDescription 271: Make 272: Model 273: StripOffsets 274: Orientation 277: SamplesPerPixel 278: RowsPerStrip 279: StripByteCounts 280: MinSampleValue 281: MaxSampleValue 282: XResolution 283: YResolution 284: PlanarConfiguration 285: PageName 286: XPosition 287: YPosition 288: FreeOffsets 289: FreeByteCounts 290: GrayResponseUnit 291: GrayResponseCurve 292: T4Options 293: T6Options 296: ResolutionUnit 297: PageNumber 301: TransferFunction 305: Software 306: DateTime 315: Artist 316: HostComputer 317: Predictor 318: WhitePoint 319: PrimaryChromaticities 320: ColorMap 321: HalfToneHints 322: TileWidth 323: TileLength 324: TileOffsets 325: TileByteCounts 330: SubIFD 332: InkSet 333: InkNames 334: NumberOfInks 336: DotRange 337: TargetPrinter 338: ExtraSample 339: SampleFormat 340: SMinSampleValue 341: SMaxSampleValue 342: TransferRange 343: ClipPath 344: XClipPathUnits 345: YClipPathUnits 346: Indexed 347: JPEGTables 351: OPIProxy 512: JPEGProc 513: JPEGInterchangeFormat 514: JPEGInterchangeFormatLength 515: JPEGRestartInterval 517: JPEGLosslessPredictors 518: JPEGPointTransforms 519: JPEGQTables 520: JPEGDCTables 521: JPEGACTables 529: YCbCrCoefficients 530: YCbCrSubSampling 531: YCbCrPositioning 532: ReferenceBlackWhite 700: ExtensibleMetadataPlatform 769: Gamma 770: ICCProfileDescriptor 771: SRGBRenderingIntent 800: ImageTitle