PHPackages                             press-bits/media-library-svg-display - 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. press-bits/media-library-svg-display

ActiveLibrary

press-bits/media-library-svg-display
====================================

Enable display of Scalable Vector Graphics (SVG) in the WordPress media library.

0.1.2(8y ago)22.2k1GPL-2.0+PHPPHP &gt;=5.4.0

Since Dec 20Pushed 8y ago2 watchersCompare

[ Source](https://github.com/press-bits/media-library-svg-display)[ Packagist](https://packagist.org/packages/press-bits/media-library-svg-display)[ RSS](/packages/press-bits-media-library-svg-display/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Display SVGs in the Media Library
=================================

[](#display-svgs-in-the-media-library)

As of WordPress 4.7 the media library does not display Scalable Vector Graphics (SVG) correctly. We aim to fix that.

Originally a plugin
-------------------

[](#originally-a-plugin)

The [Scalable Vector Graphics plugin](http://www.sterlinghamilton.com/projects/scalable-vector-graphics/) solves this nicely, but what if you want to include this functionality in your own theme or plugin?

Now a package
-------------

[](#now-a-package)

Ah, the same good stuff as a [Composer](https://getcomposer.com) dependency!

### Installation

[](#installation)

Run

```
composer require press-bits/media-library-svg-display

```

or add

```
"press-bits/media-library-svg-display": "^0.1.0"

```

to the requirements in your `composer.json`.

### Usage

[](#usage)

In your bootstrap code, after including `vendor/autoload.php`:

```
PressBits\MediaLibrary\ScalarVectorGraphicsDisplay::enable();

```

No Uploads
----------

[](#no-uploads)

The original plugin also enables uploads of SVGs, but this package does not. One reason is to limit the responsbilitiy of the package, another is the [security risk of SVG uploads](http://wordpress.stackexchange.com/questions/247189/understanding-svg-vulnerabilities-in-wordpress-related-to-a-specific-fix).

A separate package based on the [Safe SVG plugin](https://wordpress.org/plugins/safe-svg/developers/) may be in order.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~427 days

Total

2

Last Release

3002d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b579c5c86cdfedb7988148d0e89f2e20ed0555a52e9b599af272befdd2b400c1?d=identicon)[cyberhobo](/maintainers/cyberhobo)

---

Top Contributors

[![cyberhobo](https://avatars.githubusercontent.com/u/286838?v=4)](https://github.com/cyberhobo "cyberhobo (12 commits)")[![kaisermann](https://avatars.githubusercontent.com/u/12702016?v=4)](https://github.com/kaisermann "kaisermann (4 commits)")

### Embed Badge

![Health badge](/badges/press-bits-media-library-svg-display/health.svg)

```
[![Health](https://phpackages.com/badges/press-bits-media-library-svg-display/health.svg)](https://phpackages.com/packages/press-bits-media-library-svg-display)
```

PHPackages © 2026

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