PHPackages                             woltlab/webp-exif - 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. woltlab/webp-exif

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

woltlab/webp-exif
=================

Extract and embed EXIF metadata from and to WebP images

v0.1.3(2mo ago)14.3k↓29%MITPHPPHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

Since Jul 8Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/WoltLab/webp-exif)[ Packagist](https://packagist.org/packages/woltlab/webp-exif)[ RSS](/packages/woltlab-webp-exif/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (18)Versions (5)Used By (0)

WebP Encoder/Decoder and EXIF Extractor
=======================================

[](#webp-encoderdecoder-and-exif-extractor)

This library can decode WebP images to extract data, for example, EXIF and XMP chunks. The deconstructed image can be modified and then enconded as a WebP image again, using the most efficient format.

The most notable feature is that this library is able to parse EXIF data embedded in WebP images. PHP’s `exif_read_data()` function is limited to JPEG images and to work around this limitation the EXIF chunk offers the ability to inject the extracted EXIF data in a small host JPEG to process it with PHP.

Usage
-----

[](#usage)

```
