exiftool / wrapper
exiftool 的包装器
dev-dev
2023-05-02 12:54 UTC
Requires
- php: ^8.0
- symfony/process: ^6.1
This package is not auto-updated.
Last update: 2024-10-01 19:21:23 UTC
README
简介
PHP 对 exiftool 命令的包装
目录
安装
1 - 安装 mediainfo
您应该安装 exiftool
在 Linux 上
$ sudo apt-get install exiftool
在 Mac 上
$ brew install exiftool
2 - 在您的 PHP 项目中集成
要使用此库,请通过 Composer 安装,运行
$ composer require exiftool/wrapper
如何使用
检索媒体信息容器
<?php //... $exif = new \ExiftoolWrapper\Exiftool(); //... $mediaInfo = new Exiftool(); $mediaInfoContainer = $mediaInfo->getInfo('image.jpg'); //...