📄 exif_tags.php
字号:
<?php/******************************************************************************** Filename: EXIF_Tags.php** Description: Provides definitions of the tags for TIFF, EXIF, Interoperability,* GPS, Meta, Kodak Special Effects and Kodak Borders IFD's.** Author: Evan Hunter** Date: 1/8/2004** Project: PHP JPEG Metadata Toolkit** Revision: 1.11** Changes: 1.00 -> 1.11 : Added TIFF compression types ZIP, LZW and JPEG* Added embedded XMP tag* Added embedded Photoshop IRB tag* Fixed GPS tags after testing** URL: http://electronics.ozhiker.com** Copyright: Copyright Evan Hunter 2004** License: This file is part of the PHP JPEG Metadata Toolkit.** The PHP JPEG Metadata Toolkit is free software; you can* redistribute it and/or modify it under the terms of the* GNU General Public License as published by the Free Software* Foundation; either version 2 of the License, or (at your* option) any later version.** The PHP JPEG Metadata Toolkit is distributed in the hope* that it will be useful, but WITHOUT ANY WARRANTY; without* even the implied warranty of MERCHANTABILITY or FITNESS* FOR A PARTICULAR PURPOSE. See the GNU General Public License* for more details.** You should have received a copy of the GNU General Public* License along with the PHP JPEG Metadata Toolkit; if not,* write to the Free Software Foundation, Inc., 59 Temple* Place, Suite 330, Boston, MA 02111-1307 USA** If you require a different license for commercial or other* purposes, please contact the author: evan@ozhiker.com*******************************************************************************//******************************************************************************* Global Variable: IFD_Tag_Definitions** Contents: This array defines the fields for the TIFF, EXIF, Interoperability,* GPS, Meta, Kodak Special Effects and Kodak Borders IFD's.* It is indexed by the IFD Type, then the Tag number*******************************************************************************/$GLOBALS[ "IFD_Tag_Definitions" ] = array(/*****************************************************************************//* *//* TIFF Tags *//* *//*****************************************************************************/"TIFF" => array(256 => array( 'Name' => "Image Width", 'Description' => "Width of image in pixels (number of columns)", 'Type' => "Numeric", 'Units' => "pixels" ),257 => array( 'Name' => "Image Length", 'Description' => "Height of image in pixels (number of rows)", 'Type' => "Numeric", 'Units' => "pixels" ),258 => array( 'Name' => "Bits Per Sample", 'Description' => "Number of bits recorded per sample (a sample is usually one colour (Red, Green or Blue) of one pixel)", 'Type' => "Numeric", 'Units' => "bits ( for each colour component )" ),259 => array( 'Name' => "Compression", 'Description' => "Specifies what type of compression is used 1 = uncompressed, 6 = JPEG compression (thumbnails only), Other = reserved", 'Type' => "Lookup", 1 => "Uncompressed", 5 => "LZW Compression", 6 => "Thumbnail compressed with JPEG compression", 7 => "JPEG Compression", 8 => "ZIP Compression" ), // Change: Added TIFF compression types as of version 1.11262 => array( 'Name' => "Photometric Interpretation", 'Description' => "Specifies Pixel Composition - 0 or 1 = monochrome, 2 = RGB, 3 = Palatte Colour, 4 = Transparency Mask, 6 = YCbCr", 'Type' => "Lookup", 2 => "RGB (Red Green Blue)", 6 => "YCbCr (Luminance, Chroma minus Blue, and Chroma minus Red)" ),274 => array( 'Name' => "Orientation", 'Description' => "Specifies the orientation of the image.\n1 = Row 0 top, column 0 left\n2 = Row 0 top, column 0 right\n3 = Row 0 bottom, column 0 right\n4 = Row 0 bottom, column 0 left\n5 = Row 0 left, column 0 top\n6 = Row 0 right, column 0 top\n7 = Row 0 right, column 0 bottom\n8 = Row 0 left, column 0 bottom", 'Type' => "Lookup", 1 => "No Rotation, No Flip \n(Row 0 is at the visual top of the image,\n and column 0 is the visual left-hand side)", 2 => "No Rotation, Flipped Horizontally \n(Row 0 is at the visual top of the image,\n and column 0 is the visual right-hand side)", 3 => "Rotated 180 degrees, No Flip \n(Row 0 is at the visual bottom of the image,\n and column 0 is the visual right-hand side)", 4 => "No Rotation, Flipped Vertically \n(Row 0 is at the visual bottom of the image,\n and column 0 is the visual left-hand side)", 5 => "Flipped Horizontally, Rotated 90 degrees counter clockwise \n(Row 0 is at the visual left-hand side of of the image,\n and column 0 is the visual top)", 6 => "No Flip, Rotated 90 degrees clockwise \n(Row 0 is at the visual right-hand side of of the image,\n and column 0 is the visual top)", 7 => "Flipped Horizontally, Rotated 90 degrees clockwise \n(Row 0 is at the visual right-hand side of of the image,\n and column 0 is the visual bottom)", 8 => "No Flip, Rotated 90 degrees counter clockwise \n(Row 0 is at the visual left-hand side of of the image,\n and column 0 is the visual bottom)" ),277 => array( 'Name' => "Samples Per Pixel", 'Description' => "Number of recorded samples (colours) per pixel - usually 1 for B&W, grayscale, and palette-colour, usually 3 for RGB and YCbCr", 'Type' => "Numeric", 'Units' => "Components (colours)" ),284 => array( 'Name' => "Planar Configuration", 'Description' => "Specifies whether pixel components are recorded in chunky or planar format - 1 = Chunky, 2 = Planar", 'Type' => "Lookup", 1 => "Chunky Format", 2 => "Planar Format" ),530 => array( 'Name' => "YCbCr Sub-Sampling", 'Description' => "Specifies ratio of chrominance to luminance components - [2, 1] = YCbCr4:2:2, [2, 2] = YCbCr4:2:0", 'Type' => "Special" ),531 => array( 'Name' => "YCbCr Positioning", 'Description' => "Specifies location of chrominance and luminance components - 1 = centered, 2 = co-sited", 'Type' => "Lookup", 1 => "Chrominance components Centred in relation to luminance components", 2 => "Chrominance and luminance components Co-Sited" ),282 => array( 'Name' => "X Resolution", 'Description' => "Number of columns (pixels) per \'ResolutionUnit\'", 'Type' => "Numeric", 'Units'=> "pixels per 'Resolution Unit' " ),283 => array( 'Name' => "Y Resolution", 'Description' => "Number of rows (pixels) per \'ResolutionUnit\'", 'Type' => "Numeric", 'Units'=> "pixels per 'Resolution Unit' " ),296 => array( 'Name' => "Resolution Unit", 'Description' => "Units for measuring XResolution and YResolution - 1 = No units, 2 = Inches, 3 = Centimetres", 'Type' => "Lookup", 2 => "Inches", 3 => "Centimetres" ),273 => array( 'Name' => "Strip Offsets", 'Type' => "Numeric", 'Units'=> "bytes offset" ),278 => array( 'Name' => "Rows Per Strip", 'Type' => "Numeric", 'Units'=> "rows" ),279 => array( 'Name' => "Strip Byte Counts", 'Type' => "Numeric", 'Units'=> "bytes" ),513 => array( 'Name' => "Exif Thumbnail (JPEG Interchange Format)", 'Type' => "Special" ),514 => array( 'Name' => "Exif Thumbnail Length (JPEG Interchange Format Length)", 'Type' => "Numeric", 'Units'=> "bytes" ),301 => array( 'Name' => "Transfer Function", 'Type' => "Numeric", 'Units'=> "" ),318 => array( 'Name' => "White Point Chromaticity", 'Type' => "Numeric", 'Units'=> "(x,y coordinates on a 1931 CIE xy chromaticity diagram)" ),319 => array( 'Name' => "Primary Chromaticities", 'Type' => "Numeric", 'Units'=> "(Red x,y, Green x,y, Blue x,y coordinates on a 1931 CIE xy chromaticity diagram)" ),529 => array( 'Name' => "YCbCr Coefficients", 'Description' => "Transform Coefficients for transformation from RGB to YCbCr", 'Type' => "Numeric", 'Units'=> "(LumaRed, LumaGreen, LumaBlue [proportions of red, green, and blue in luminance])" ),532 => array( 'Name' => "Reference Black point and White point", 'Type' => "Numeric", 'Units'=> "(R or Y White Headroom, R or Y Black Footroom, G or Cb White Headroom, G or Cb Black Footroom, B or Cr White Headroom, B or Cr Black Footroom)" ),306 => array( 'Name' => "Date and Time", 'Type' => "Numeric", 'Units'=> " (Format: YYYY:MM:DD HH:mm:SS)" ),270 => array( 'Name' => "Image Description", 'Type' => "String" ),271 => array( 'Name' => "Make (Manufacturer)", 'Type' => "String" ),272 => array( 'Name' => "Model", 'Type' => "String" ),305 => array( 'Name' => "Software or Firmware", 'Type' => "String" ),315 => array( 'Name' => "Artist Name", 'Type' => "String" ),700 => array( 'Name' => "Embedded XMP Block", // Change: Added embedded XMP as of version 1.11 'Type' => "XMP" ),33432 => array( 'Name' => "Copyright Information", 'Type' => "String" ),34665 => array( 'Name' => "EXIF Image File Directory (IFD)", 'Type' => "SubIFD", 'Tags Name' => "EXIF" ),33723 => array( 'Name' => "IPTC Records", 'Type' => "IPTC" ),34377 => array( 'Name' => "Embedded Photoshop IRB", // Change: Added embedded IRB as of version 1.11 'Type' => "IRB" ),34853 => array( 'Name' => "GPS Info Image File Directory (IFD)", // Change: Moved GPS IFD tag to correct location as of version 1.11 'Type' => "SubIFD", 'Tags Name' => "GPS" ),50341 => array( 'Name' => "Print Image Matching Info", 'Type' => "PIM" ),),/*****************************************************************************//* *//* EXIF Tags *//* *//*****************************************************************************/'EXIF' => array (// Exif IFD36864 => array( 'Name' => "Exif Version", 'Type' => "String" ),40965 => array( 'Name' => "Interoperability Image File Directory (IFD)", 'Type' => "SubIFD", 'Tags Name' => "Interoperability" ),// Change: removed GPS IFD tag from here as it was incorrect location - as of version 1.1140960 => array( 'Name' => "FlashPix Version", 'Type' => "String" ),40961 => array( 'Name' => "Colour Space", 'Type' => "Lookup", 1 => "sRGB", 0xFFFF => "Uncalibrated" ),40962 => array( 'Name' => "Pixel X Dimension", 'Type' => "Numeric", 'Units'=> "pixels" ),40963 => array( 'Name' => "Pixel Y Dimension", 'Type' => "Numeric", 'Units' => "pixels" ),37121 => array( 'Name' => "Components Configuration", 'Type' => "Special" ),37122 => array( 'Name' => "Compressed Bits Per Pixel", 'Type' => "Numeric", 'Units' => "bits" ),37500 => array( 'Name' => "Maker Note", 'Type' => "Maker Note" ),37510 => array( 'Name' => "User Comment", 'Type' => "Character Coded String" ),40964 => array( 'Name' => "Related Sound File", 'Type' => "String" ),36867 => array( 'Name' => "Date and Time of Original", 'Type' => "String", 'Units' => " (Format: YYYY:MM:DD HH:mm:SS)" ),
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -