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. [Image &amp; Media](/categories/media)
4. /
5. press-bits/media-library-svg-display

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

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

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

0.1.2(8y ago)22.2k11GPL-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 3w ago

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

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

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community13

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

3047d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/286838?v=4)[Dylan Kuhn](/maintainers/cyberhobo)[@cyberhobo](https://github.com/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)
```

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

133890.0k3](/packages/goat1000-svggraph)[imagekit/imagekit

PHP library for Imagekit

46877.3k10](/packages/imagekit-imagekit)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

12644.1k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

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