PHPackages                             eislambey/splathash-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. [Image &amp; Media](/categories/media)
4. /
5. eislambey/splathash-php

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

eislambey/splathash-php
=======================

16 bytes fixed size image placeholder, an alternative to blurhash and thumbhash

1.0.0(1mo ago)15MITPHPPHP &gt;=8.2

Since May 1Pushed 1mo agoCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

SplatHash PHP
=============

[](#splathash-php)

PHP port of [SplatHash](https://github.com/junevm/splathash): compress any image to exactly 16 bytes and reconstruct a 32x32 RGBA placeholder.

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

[](#requirements)

- PHP 8.2+
- `ext-gd` for `SplatHash::encode()` from image files or `GdImage`

Install
-------

[](#install)

```
composer require eislambey/splathash-php
```

Usage
-----

[](#usage)

```
