PHPackages                             programmatically/logo-wall - 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. programmatically/logo-wall

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

programmatically/logo-wall
==========================

A library to scale different logos for display on a wall in a visually pleasing way

1.0.0(4mo ago)059MITPHPPHP ~8.1CI passing

Since Feb 9Pushed 4mo agoCompare

[ Source](https://github.com/programmatical-ly/logo-wall)[ Packagist](https://packagist.org/packages/programmatically/logo-wall)[ RSS](/packages/programmatically-logo-wall/feed)WikiDiscussions main Synced today

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

Logo Wall Normalizer
====================

[](#logo-wall-normalizer)

`programmatically/logo-wall` is a small PHP library for measuring and normalizing logo dimensions so logos render more consistently in a logo wall/grid. It is based on a React project called [LogoSoup](https://github.com/sanity-labs/react-logo-soup) by [Rostislav Melkumyan (Sanity Labs)](https://www.sanity.io/blog/the-logo-soup-problem).

It can:

- Detect visible content bounds inside transparent/white-padded images
- Calculate a visual center and optional pixel density
- Produce normalized width/height values from measured logos
- Optionally return a cropped PNG data URI of content-only pixels
- Read raster logos plus SVG inputs

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

[](#requirements)

- PHP `~8.1`
- `ext-imagick`

Installation
------------

[](#installation)

```
composer require programmatically/logo-wall
```

Usage
-----

[](#usage)

```
