PHPackages                             optimit/iptc-jpeg - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. optimit/iptc-jpeg

ActiveLibrary[Image &amp; Media](/categories/media)

optimit/iptc-jpeg
=================

Specific class for manipulating IPTC/EXIF metadata of jpeg images

020PHP

Since Aug 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/stacmv/IptcJpeg)[ Packagist](https://packagist.org/packages/optimit/iptc-jpeg)[ RSS](/packages/optimit-iptc-jpeg/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Image\_Iptc
===========

[](#image_iptc)

Specific class for manipulating IPTC/EXIF metadata of jpeg images

Includes Demo writing Keywords/Tags and Caption to image.

Examples
--------

[](#examples)

### Writing tags

[](#writing-tags)

```
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));

```

Feature Overview
----------------

[](#feature-overview)

- Reading and writing IPTC/EXIF tags
- Support for array data, can write a list of tags
- Removing IPTC tags
- Append and Prepend of tags
- Fetch and FethAll tags

Contributors
============

[](#contributors)

**Special thanks to the following contributors:**

- [Toby Allen](https://github.com/tobya)
- [netboy](https://github.com/netboy)

License
-------

[](#license)

(The MIT License)

Copyright (c) 2012 Bruno Agutoli &lt;&gt;

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a52d4644b738246f14fcf46593984eead439215a78fad04a09a11e6674df8143?d=identicon)[optimit](/maintainers/optimit)

---

Top Contributors

[![agutoli](https://avatars.githubusercontent.com/u/298845?v=4)](https://github.com/agutoli "agutoli (23 commits)")[![tobya](https://avatars.githubusercontent.com/u/325502?v=4)](https://github.com/tobya "tobya (4 commits)")[![zetdev](https://avatars.githubusercontent.com/u/968906?v=4)](https://github.com/zetdev "zetdev (2 commits)")[![jhcaiced](https://avatars.githubusercontent.com/u/1218126?v=4)](https://github.com/jhcaiced "jhcaiced (1 commits)")[![nickvergessen](https://avatars.githubusercontent.com/u/213943?v=4)](https://github.com/nickvergessen "nickvergessen (1 commits)")[![stacmv](https://avatars.githubusercontent.com/u/2077989?v=4)](https://github.com/stacmv "stacmv (1 commits)")

### Embed Badge

![Health badge](/badges/optimit-iptc-jpeg/health.svg)

```
[![Health](https://phpackages.com/badges/optimit-iptc-jpeg/health.svg)](https://phpackages.com/packages/optimit-iptc-jpeg)
```

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

133890.0k3](/packages/goat1000-svggraph)[imagekit/imagekit

PHP library for Imagekit

46877.3k10](/packages/imagekit-imagekit)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

12644.1k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
