optimit/iptc-jpeg

用于操作jpeg图像的IPTC/EXIF元数据的特定类

dev-master 2017-08-14 15:54 UTC

This package is auto-updated.

Last update: 2024-09-14 08:16:41 UTC


README

用于操作jpeg图像的IPTC/EXIF元数据的特定类

包括示例,如何将关键词/标签和标题写入图像。

示例

写入标签

use IptcJpeg\Iptc;

$iptc = new Iptc('et_betrayed.jpg');

$iptc->set(Iptc::CAPTION, array(
    'NASA finally managed to contact with extraterrestrials, here are a few excerpts from the chat...',
    'E.T.: Hi Earthlings .\//,',
    'NASA agent: What do you want from us?',
    'E.T.: We want to see a show of Katy Perry',
    'NASA agent: Really? Why?',
    'E.T.: Why E.T. music reminds me of my ex wife',
    'NASA agent: What happened to her?',
    'E.T.: She ran away with the "E.T." protagonist of the movie Steven Spielberg ...',
    'NASA agent: How sad!! '
));
$iptc->write();

// read tags
print_r($iptc->fetchAll(Iptc::CAPTION));

功能概述

  • 读取和写入IPTC/EXIF标签
  • 支持数组数据,可以写入标签列表
  • 移除IPTC标签
  • 标签的追加和预追加
  • 获取和获取所有标签

贡献者

特别感谢以下贡献者

许可

(MIT许可)

版权 (c) 2012 Bruno Agutoli <bruno.agutoli@gmail.com>

特此授予任何获得本软件及其相关文档副本(以下简称“软件”)的人免费权利,可以在不受限制的情况下处理软件,包括但不限于使用、复制、修改、合并、发布、分发、再许可和/或销售软件的副本,并允许向提供软件的个人提供这样做,前提是遵守以下条件

上述版权声明和本许可声明应包含在软件的所有副本或主要部分中。

软件按“原样”提供,不提供任何形式的保证,明示或暗示,包括但不限于适销性、特定用途适用性和非侵权性保证。在任何情况下,作者或版权所有者均不对任何索赔、损害或其他责任负责,无论此类索赔、损害或其他责任是基于合同、侵权或其他方式产生,与软件或其使用或其他方式有关。