exif_tagname 


php apg

RETRIEVE the EXIF group tag name from its numeric index.





This function returns the header name or FALSE if the $index is not a defined EXIF tag.

(65535)D = (OxFFFF)H tags are possible, however some - currently - are not in use.

In some older versions of PHP the ID must be expressed in hexadecimal notation, otherwise there will be ERROR.



<?php

string
|false exif_tagname int $index )


where,

$index The tag ID to retriev the name

?>

  $index   


The tag ID for which a tag name will be looked up.



  1 EXERCISE   



<table width="100%" align="center" cellspacing="5" 
cellpadding="5" border="1">
<tbody>
<tr>
<td width="20%">DECIMAL</td>
<td width="20%">HEXADECIMAL</td>
<td width="60%">TAG NAME</td>
</tr>
<?php

// Run this code to see the result

for ($id 1$id <= 65535$id++)
{

if(
exif_tagname($id) != "")
{
echo 
'<tr><td>' $id '</td><td>' strtoupper(dechex($id)) . '</td><td>' exif_tagname($id) . '</td></tr>';
}
echo 
'';
}
?>
<tr>
<td colspan="3">ed48</td>
</tr>
</tbody></table><br>


 RESULT   

DECIMALHEXADECIMAL TAG NAME
11BACDComment
254FENewSubFile
255FFSubFile
256100ImageWidth
257101ImageLength
258102BitsPerSample
259103Compression
262106PhotometricInterpretation
26610AFillOrder
26910DDocumentName
27010EImageDescription
27110FMake
272110Model
273111StripOffsets
274112Orientation
277115SamplesPerPixel
278116RowsPerStrip
279117StripByteCounts
280118MinSampleValue
281119MaxSampleValue
28211AXResolution
28311BYResolution
28411CPlanarConfiguration
28511DPageName
28611EXPosition
28711FYPosition
288120FreeOffsets
289121FreeByteCounts
290122GrayResponseUnit
291123GrayResponseCurve
292124T4Options
293125T6Options
296128ResolutionUnit
297129PageNumber
30112DTransferFunction
305131Software
306132DateTime
31513BArtist
31613CHostComputer
31713DPredictor
31813EWhitePoint
31913FPrimaryChromaticities
320140ColorMap
321141HalfToneHints
322142TileWidth
323143TileLength
324144TileOffsets
325145TileByteCounts
33014ASubIFD
33214CInkSet
33314DInkNames
33414ENumberOfInks
336150DotRange
337151TargetPrinter
338152ExtraSample
339153SampleFormat
340154SMinSampleValue
341155SMaxSampleValue
342156TransferRange
343157ClipPath
344158XClipPathUnits
345159YClipPathUnits
34615AIndexed
34715BJPEGTables
35115FOPIProxy
512200JPEGProc
513201JPEGInterchangeFormat
514202JPEGInterchangeFormatLength
515203JPEGRestartInterval
517205JPEGLosslessPredictors
518206JPEGPointTransforms
519207JPEGQTables
520208JPEGDCTables
521209JPEGACTables
529211YCbCrCoefficients
530212YCbCrSubSampling
531213YCbCrPositioning
532214ReferenceBlackWhite
7002BCExtensibleMetadataPlatform
769301Gamma
770302ICCProfileDescriptor
771303SRGBRenderingIntent
800320ImageTitle
40961000RelatedImageFileFormat
204815001ResolutionXUnit
204825002ResolutionYUnit
204835003ResolutionXLengthUnit
204845004ResolutionYLengthUnit
204855005PrintFlags
204865006PrintFlagsVersion
204875007PrintFlagsCrop
204885008PrintFlagsBleedWidth
204895009PrintFlagsBleedWidthScale
20490500AHalftoneLPI
20491500BHalftoneLPIUnit
20492500CHalftoneDegree
20493500DHalftoneShape
20494500EHalftoneMisc
20495500FHalftoneScreen
204965010JPEGQuality
204975011GridSize
204985012ThumbnailFormat
204995013ThumbnailWidth
205005014ThumbnailHeight
205015015ThumbnailColorDepth
205025016ThumbnailPlanes
205035017ThumbnailRawBytes
205045018ThumbnailSize
205055019ThumbnailCompressedSize
20506501AColorTransferFunction
20507501BThumbnailData
205125020ThumbnailImageWidth
205135021ThumbnailImageHeight
205145022ThumbnailBitsPerSample
205155023ThumbnailCompression
205165024ThumbnailPhotometricInterp
205175025ThumbnailImageDescription
205185026ThumbnailEquipMake
205195027ThumbnailEquipModel
205205028ThumbnailStripOffsets
205215029ThumbnailOrientation
20522502AThumbnailSamplesPerPixel
20523502BThumbnailRowsPerStrip
20524502CThumbnailStripBytesCount
20525502DThumbnailResolutionX
20526502EThumbnailResolutionY
20527502FThumbnailPlanarConfig
205285030ThumbnailResolutionUnit
205295031ThumbnailTransferFunction
205305032ThumbnailSoftwareUsed
205315033ThumbnailDateTime
205325034ThumbnailArtist
205335035ThumbnailWhitePoint
205345036ThumbnailPrimaryChromaticities
205355037ThumbnailYCbCrCoefficients
205365038ThumbnailYCbCrSubsampling
205375039ThumbnailYCbCrPositioning
20538503AThumbnailRefBlackWhite
20539503BThumbnailCopyRight
206245090LuminanceTable
206255091ChrominanceTable
207365100FrameDelay
207375101LoopCount
207525110PixelUnit
207535111PixelPerUnitX
207545112PixelPerUnitY
207555113PaletteHistogram
32781800DImageID
3299580E3Matteing
3299680E4DataType
3299780E5ImageDepth
3299880E6TileDepth
33421828DCFARepeatPatternDim
33422828ECFAPattern
33423828FBatteryLevel
334328298Copyright
33434829AExposureTime
33437829DFNumber
3372383BBIPTC/NAA
3401984E3IT8RasterPadding
3402184E5IT8ColorTable
343778649ImageResourceInformation
346658769Exif_IFD_Pointer
346758773ICC_Profile
348508822ExposureProgram
348528824SpectralSensity
348538825GPS_IFD_Pointer
348558827ISOSpeedRatings
348568828OECF
368649000ExifVersion
368679003DateTimeOriginal
368689004DateTimeDigitized
371219101ComponentsConfiguration
371229102CompressedBitsPerPixel
373779201ShutterSpeedValue
373789202ApertureValue
373799203BrightnessValue
373809204ExposureBiasValue
373819205MaxApertureValue
373829206SubjectDistance
373839207MeteringMode
373849208LightSource
373859209Flash
37386920AFocalLength
37387920BFlashEnergy
37388920CSpatialFrequencyResponse
37389920DNoise
37390920EFocalPlaneXResolution
37391920FFocalPlaneYResolution
373929210FocalPlaneResolutionUnit
373939211ImageNumber
373949212SecurityClassification
373959213ImageHistory
373969214SubjectLocation
373979215ExposureIndex
373989216TIFF/EPStandardID
373999217SensingMethod
37439923FStoNits
37500927CMakerNote
375109286UserComment
375209290SubSecTime
375219291SubSecTimeOriginal
375229292SubSecTimeDigitized
37724935CImageSourceData
400919C9BTitle
400929C9CComments
400939C9DAuthor
400949C9EKeywords
400959C9FSubject
40960A000FlashPixVersion
40961A001ColorSpace
40962A002ExifImageWidth
40963A003ExifImageLength
40964A004RelatedSoundFile
40965A005InteroperabilityOffset
41483A20BFlashEnergy
41484A20CSpatialFrequencyResponse
41485A20DNoise
41486A20EFocalPlaneXResolution
41487A20FFocalPlaneYResolution
41488A210FocalPlaneResolutionUnit
41489A211ImageNumber
41490A212SecurityClassification
41491A213ImageHistory
41492A214SubjectLocation
41493A215ExposureIndex
41494A216TIFF/EPStandardID
41495A217SensingMethod
41728A300FileSource
41729A301SceneType
41730A302CFAPattern
41985A401CustomRendered
41986A402ExposureMode
41987A403WhiteBalance
41988A404DigitalZoomRatio
41989A405FocalLengthIn35mmFilm
41990A406SceneCaptureType
41991A407GainControl
41992A408Contrast
41993A409Saturation
41994A40ASharpness
41995A40BDeviceSettingDescription
41996A40CSubjectDistanceRange
42016A420ImageUniqueID
65534FFFEComputed value
65535FFFFNo tag value
ed48

  2 EXERCISE   



<table width="100%" align="center" cellspacing="5" 
cellpadding="5" border="1">
<tbody>
<tr>
<td width="20%">DECIMAL</td>
<td width="20%">HEXADECIMAL</td>
<td width="60%">TAG NAME</td>
</tr>
<?php

// Run this code to see the result

for ($id 0x0$id <= 0xffff$id++)
{

if(
exif_tagname($id) != "")
{
echo 
'<tr><td>' $id '</td><td>' strtoupper(dechex($id)) . '</td><td>' exif_tagname($id) . '</td></tr>';
}
echo 
'';
}
?>
<tr>
<td colspan="3">ed48</td>
</tr>
</tbody></table><br>