[ Index ] |
|
Code source de DokuWiki 2006-11-06 |
[Code source] [Imprimer] [Statistiques]
JPEG metadata reader/writer
Author: | Sebastian Delmont <sdelmont@zonageek.com> |
Author: | Andreas Gohr <andi@splitbrain.org> |
License: | PHP license 2.0 (http://www.php.net/license/2_02.txt) |
Poids: | 2982 lignes (103 kb) |
Inclus ou requis: | 4 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
JpegMeta:: (54 méthodes):
JpegMeta()
getField()
setField()
deleteField()
getDateField()
getFileField()
getCamera()
getShutterSpeed()
getExifField()
getAdobeField()
getIPTCField()
setExifField()
setAdobeField()
getResizeRatio()
setIPTCField()
deleteExifField()
deleteAdobeField()
deleteIPTCField()
getTitle()
getDates()
getWidth()
getHeight()
getDimStr()
hasThumbnail()
sendThumbnail()
save()
_dispose()
_readJPEG()
_parseAll()
_writeJPEG()
_writeJPEGMarker()
_parseFileInfo()
_parseMarkerJFIF()
_parseMarkerSOF()
_parseMarkerExif()
_readIFD()
_writeIFD()
_parseMarkerAdobe()
_readIPTC()
_write8BIM()
_writeIPTCEntry()
_exifTagNames()
_exifTagTypes()
_exifNameTags()
_iptcTagNames()
_names2Tags()
_getByte()
_putByte()
_getShort()
_putShort()
_getLong()
_putLong()
_putString()
_hexDump()
JpegMeta($fileName) X-Ref |
Constructor author: Sebastian Delmont <sdelmont@zonageek.com> |
getField($fields) X-Ref |
Pas de description |
setField($field, $value) X-Ref |
Convinience function to set nearly all available Data through one function author: Andreas Gohr <andi@splitbrain.org> |
deleteField($field) X-Ref |
Convinience function to delete nearly all available Data through one function author: Andreas Gohr <andi@splitbrain.org> |
getDateField($field) X-Ref |
Return a date field author: Andreas Gohr <andi@splitbrain.org> |
getFileField($field) X-Ref |
Return a file info field author: Andreas Gohr <andi@splitbrain.org> |
getCamera() X-Ref |
Return the camera info (Maker and Model) author: Andreas Gohr <andi@splitbrain.org> |
getShutterSpeed() X-Ref |
Return shutter speed as a ratio author: Joe Lapp <joe.lapp@pobox.com> |
getExifField($field) X-Ref |
Return an EXIF field author: Sebastian Delmont <sdelmont@zonageek.com> |
getAdobeField($field) X-Ref |
Return an Adobe Field author: Sebastian Delmont <sdelmont@zonageek.com> |
getIPTCField($field) X-Ref |
Return an IPTC field author: Sebastian Delmont <sdelmont@zonageek.com> |
setExifField($field, $value) X-Ref |
Set an EXIF field author: Sebastian Delmont <sdelmont@zonageek.com> author: Joe Lapp <joe.lapp@pobox.com> |
setAdobeField($field, $value) X-Ref |
Set an Adobe Field author: Sebastian Delmont <sdelmont@zonageek.com> |
getResizeRatio($maxwidth,$maxheight=0) X-Ref |
Calculates the multiplier needed to resize the image to the given dimensions author: Andreas Gohr <andi@splitbrain.org> |
setIPTCField($field, $value) X-Ref |
Set an IPTC field author: Sebastian Delmont <sdelmont@zonageek.com> |
deleteExifField($field) X-Ref |
Delete an EXIF field author: Sebastian Delmont <sdelmont@zonageek.com> |
deleteAdobeField($field) X-Ref |
Delete an Adobe field author: Sebastian Delmont <sdelmont@zonageek.com> |
deleteIPTCField($field) X-Ref |
Delete an IPTC field author: Sebastian Delmont <sdelmont@zonageek.com> |
getTitle($max=80) X-Ref |
Get the image's title, tries various fields author: Andreas Gohr <andi@splitbrain.org> param: int $max maximum number chars (keeps words) |
getDates() X-Ref |
Gather various date fields author: Sebastian Delmont <sdelmont@zonageek.com> |
getWidth() X-Ref |
Get the image width, tries various fields author: Sebastian Delmont <sdelmont@zonageek.com> |
getHeight() X-Ref |
Get the image height, tries various fields author: Sebastian Delmont <sdelmont@zonageek.com> |
getDimStr() X-Ref |
Get an dimension string for use in img tag author: Sebastian Delmont <sdelmont@zonageek.com> |
hasThumbnail($which = 'any') X-Ref |
Checks for an embedded thumbnail author: Sebastian Delmont <sdelmont@zonageek.com> |
sendThumbnail($which = 'any') X-Ref |
Send embedded thumbnail to browser author: Sebastian Delmont <sdelmont@zonageek.com> |
save($fileName = "") X-Ref |
Save changed Metadata author: Sebastian Delmont <sdelmont@zonageek.com> author: Andreas Gohr <andi@splitbrain.org> |
_dispose() X-Ref |
Pas de description |
_readJPEG() X-Ref |
Pas de description |
_parseAll() X-Ref |
Pas de description |
_writeJPEG($outputName) X-Ref |
Pas de description |
_writeJPEGMarker($marker, $length, &$data, $origLength) X-Ref |
Pas de description |
_parseFileInfo() X-Ref |
Gets basic info from the file - should work with non-JPEGs author: Sebastian Delmont <sdelmont@zonageek.com> author: Andreas Gohr <andi@splitbrain.org> |
_parseMarkerJFIF() X-Ref |
Pas de description |
_parseMarkerSOF() X-Ref |
Pas de description |
_parseMarkerExif() X-Ref |
Pas de description |
_readIFD($data, $base, $offset, $isBigEndian, $mode) X-Ref |
Pas de description |
_writeIFD(&$data, $pos, $offsetBase, &$entries, $isBigEndian, $hasNext) X-Ref |
Pas de description |
_parseMarkerAdobe() X-Ref |
Pas de description |
_readIPTC(&$data, $pos = 0) X-Ref |
Pas de description |
_write8BIM(&$data, $pos, $type, $header, &$value) X-Ref |
Pas de description |
_writeIPTCEntry(&$data, $pos, $type, &$value) X-Ref |
Pas de description |
_exifTagNames($mode) X-Ref |
Pas de description |
_exifTagTypes($mode) X-Ref |
Pas de description |
_exifNameTags($mode) X-Ref |
Pas de description |
_iptcTagNames() X-Ref |
Pas de description |
_names2Tags($tags2Names) X-Ref |
Pas de description |
_getByte(&$data, $pos) X-Ref |
Pas de description |
_putByte(&$data, $pos, $val) X-Ref |
Pas de description |
_getShort(&$data, $pos, $bigEndian = true) X-Ref |
Pas de description |
_putShort(&$data, $pos = 0, $val, $bigEndian = true) X-Ref |
Pas de description |
_getLong(&$data, $pos, $bigEndian = true) X-Ref |
Pas de description |
_putLong(&$data, $pos, $val, $bigEndian = true) X-Ref |
Pas de description |
_putString(&$data, $pos, &$str) X-Ref |
Pas de description |
_hexDump(&$data, $start = 0, $length = -1) X-Ref |
Pas de description |
Généré le : Tue Apr 3 20:47:31 2007 | par Balluche grâce à PHPXref 0.7 |