PHPackages                             hdrjpg/hdrjpg-sdk-php - 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. [API Development](/categories/api)
4. /
5. hdrjpg/hdrjpg-sdk-php

ActiveLibrary[API Development](/categories/api)

hdrjpg/hdrjpg-sdk-php
=====================

The official PHP SDK to convert high dynamic range photos into web-ready HDR files using the hdrjpg.com API.

v1.0.31(1y ago)18MITPHPPHP &gt;=7.4

Since Oct 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hdrjpg/hdrjpg-sdk-php)[ Packagist](https://packagist.org/packages/hdrjpg/hdrjpg-sdk-php)[ RSS](/packages/hdrjpg-hdrjpg-sdk-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (15)Used By (0)

hdrjpg-sdk-php
==============

[](#hdrjpg-sdk-php)

The official PHP SDK to convert high dynamic range photos into web-ready HDR files using the [hdrjpg.com](https://hdrjpg.com) API.

Install
-------

[](#install)

```
composer require hdrjpg/hdrjpg-sdk-php
```

Usage
-----

[](#usage)

Each conversion allows for the creation of a custom combination of image sizes, qualities and formats. The supported source HDR image formats are **HEIC** and **EXR**. Supported HDR output formats are **JPEG-XT**, **JPEG-XL**, **AVIF** and **MP4**. All files retain HDR information after the conversion. See [hdrjpg.com](https://hdrjpg.com) for more information on compatibility and conversion options.

```
use TinCat\HdrjpgSdkPhp\Client;
$client = new Client('iS1nrfLP7KSCkeVlb1hKUL39eyUHsjE+KnLwmh6j'); // Replace with your API Key
$client->convert(
    'example.heic', // Complete path for your Source HDR image file
    [ // An array of variants
        [ // Each variant defines the settings for each resulting image
            'width' => 1200,
            'baseQuality' => 98,
            'format' => 'jpeg-xt'
        ],
        [
            'width' => 800,
            'baseQuality' => 98,
            'format' => 'jpeg-xt'
        ],
        [
            'width' => 300,
            'baseQuality' => 98,
            'gainmapQuality' => 95,
            'format' => 'jpeg-xt'
        ],
        [
            'width' => 1200,
            'baseQuality' => 98,
            'format' => 'jpeg-xl'
        ],
        [
            'height' => 300,
            'baseQuality' => 98,
            'fileName' => 'image-converted',
            'format' => 'avif'
        ],
        [
            'height' => 300,
            'baseQuality' => 98,
            'format' => 'mp4'
        ]
    ],
    '/tmp' // Output directory to save resulting files to
);
```

> This method will wait for the conversion to be completed, and can take up to a few minutes depending on the size of the source image and the variants and formats requested.

Advanced usage
--------------

[](#advanced-usage)

Conversion is internally a three steps process that can be leveraged individually to better suit your implementation workflow. If you need finer control over this process, see the file [examples/advanced-convert.php](examples/advanced-convert.php) for an example on how to perform the conversion steps separately.

Free testing API Key
--------------------

[](#free-testing-api-key)

Visit [hdrjpg.com/documentation/testing-api-key](https://hdrjpg.com/documentation/testing-api-key) to get a free testing API Key.

Requirements
------------

[](#requirements)

- PHP 7.4 or higher

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance40

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~5 days

Recently: every ~11 days

Total

14

Last Release

501d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f294d015cc2d7760b96909e17d5c1b4f433f22f1d9134a27eb76117cc8b49ac?d=identicon)[tin-cat](/maintainers/tin-cat)

---

Top Contributors

[![tin-cat](https://avatars.githubusercontent.com/u/4244804?v=4)](https://github.com/tin-cat "tin-cat (32 commits)")

### Embed Badge

![Health badge](/badges/hdrjpg-hdrjpg-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/hdrjpg-hdrjpg-sdk-php/health.svg)](https://phpackages.com/packages/hdrjpg-hdrjpg-sdk-php)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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