PHPackages                             tibemolde/placeholder-pixel - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tibemolde/placeholder-pixel

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

tibemolde/placeholder-pixel
===========================

Create a base64-encoded transparent pixel of the given width and height

v1.1.2(8y ago)137MITPHP

Since Feb 15Pushed 8y ago1 watchersCompare

[ Source](https://github.com/tibemolde/craft3-placeholderpixel)[ Packagist](https://packagist.org/packages/tibemolde/placeholder-pixel)[ RSS](/packages/tibemolde-placeholder-pixel/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Placeholder Pixel plugin for Craft CMS 3.x
==========================================

[](#placeholder-pixel-plugin-for-craft-cms-3x)

Create a base64-encoded transparent pixel of the given width and height

Pixels once generated are cached on a width \* height basis to reduce load

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

[](#requirements)

This plugin requires Craft CMS 3.0.0-RC1 or later.

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require tibemolde/placeholder-pixel

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Placeholder Pixel.

Placeholder Pixel Overview
--------------------------

[](#placeholder-pixel-overview)

Create a base64-encoded transparent pixel of the given width and height

Configuring Placeholder Pixel
-----------------------------

[](#configuring-placeholder-pixel)

No configuration is needed outside of runtime-options

Using Placeholder Pixel
-----------------------

[](#using-placeholder-pixel)

Base usage:

```
craft.placeholderPixel.get(options)

```

Default options:

```
{
    width       : 1,
    height      : 1,
    aspectRatio : {
        w: 16,
        h: 10
    }
}

```

Examples:

1. 1 x 1 pixel:

    ```

    ```
2. Pixel with two specific dimensions:

    ```

    ```
3. Pixel with one specific dimension and default aspect-ratio:

    ```

    ```
4. Pixel with one specific dimension and specific aspect-ratio:

    ```

    ```

Placeholder Pixel Roadmap
-------------------------

[](#placeholder-pixel-roadmap)

Some things to do, and ideas for potential features:

- Make it better, somehow? :o

Brought to you by [TIBE Molde](https://github.com/tibemolde)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity65

Established project with proven stability

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 ~0 days

Total

3

Last Release

3057d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16030002?v=4)[TIBE Molde](/maintainers/tibemolde)[@tibemolde](https://github.com/tibemolde)

---

Tags

cmsCraftcraftcmscraft-pluginplaceholder pixel

### Embed Badge

![Health badge](/badges/tibemolde-placeholder-pixel/health.svg)

```
[![Health](https://phpackages.com/badges/tibemolde-placeholder-pixel/health.svg)](https://phpackages.com/packages/tibemolde-placeholder-pixel)
```

###  Alternatives

[verbb/formie

The most user-friendly forms plugin for Craft.

100387.6k58](/packages/verbb-formie)[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.5M52](/packages/nystudio107-craft-seomatic)[verbb/navigation

Create navigation menus for your site.

92698.4k18](/packages/verbb-navigation)[verbb/field-manager

Manage your fields and field groups with ease.

195612.2k10](/packages/verbb-field-manager)[verbb/workflow

Enforce multi-step review processes for creating entries.

138123.0k1](/packages/verbb-workflow)[verbb/comments

Add comments to your site.

13753.7k](/packages/verbb-comments)

PHPackages © 2026

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