Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

rawpixel1/PHPExiftool

Repository files navigation

#PHPExiftool

Build Status

PHP Exiftool is a PHP interface to communicate with Phil Harvey's Exiftool.

see : http://www.sno.phy.queensu.ca/~phil/exiftool/

This driver is not suitable for production, it is still under heavy development.

Examples of use :

Extract metadata :

<?php

$metadatas = \PHPExiftool\Exiftool::read(new SplFileInfo('tests/files/ExifTool.jpg'))->getMetadatas();

//True if there is a IPTC:SupplementalCategories value
$metadatas->containsKey('IPTC:SupplementalCategories');

foreach($metadatas as $metadata)
{
  echo sprintf("Found tag %s \n", $metadata->getTag()->getTagname());

  if($metadata->getValue() instanceof \PHPExiftool\Driver\Metadata\MultiBag)
  {
    // Handle multivalued field
  }
  else
  {
    // Handle monovalued field
  }
}

About

A PHP Exiftool driver

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • PHP 100.0%