PHPackages                             programeriss/pix2svg - 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. programeriss/pix2svg

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

programeriss/pix2svg
====================

Convert image to the SVG format

0.5.0(6y ago)061MITPHPPHP ^7.0CI failing

Since Jan 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/programeriss/pix2svg)[ Packagist](https://packagist.org/packages/programeriss/pix2svg)[ Docs](https://github.com/programeriss/pix2svg)[ RSS](/packages/programeriss-pix2svg/feed)WikiDiscussions master Synced 3w ago

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

Convert image to the SVG format
===============================

[](#convert-image-to-the-svg-format)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

This package provides an easy to work with class to convert image's to svg.

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

[](#installation)

The package can be installed via composer:

```
composer require programeriss/pix2svg
```

Usage
-----

[](#usage)

Converting a image to the svg is easy.

```
$pix2svg = new Programeriss\Pix2svg\Pix2svg();
$svg = $pix2svg->convert($pathToImage);
```

If the path you pass to `convert` has the extensions `jpg`, `jpeg`, `gif`, or `png` the image will be returned in the svg format. Otherwise the output will be a error.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Aidas Eglinskas](https://github.com/programeriss)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2352d ago

### Community

Maintainers

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

---

Top Contributors

[![programeriss](https://avatars.githubusercontent.com/u/23622079?v=4)](https://github.com/programeriss "programeriss (12 commits)")

---

Tags

convertimagephpsvgconvertimagesvgprogramerisspix2svgimage-to-svg

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/programeriss-pix2svg/health.svg)

```
[![Health](https://phpackages.com/badges/programeriss-pix2svg/health.svg)](https://phpackages.com/packages/programeriss-pix2svg)
```

###  Alternatives

[lasserafn/php-initial-avatar-generator

A package to generate avatars with initials for PHP

4404.4M17](/packages/lasserafn-php-initial-avatar-generator)[h4cc/wkhtmltoimage-amd64

Convert html to image using webkit (qtwebkit). Static linked linux binary for amd64 systems.

20311.3M16](/packages/h4cc-wkhtmltoimage-amd64)[yzalis/identicon

Generate unique identicon avatars from any string

6101.2M23](/packages/yzalis-identicon)[h4cc/wkhtmltoimage-i386

Convert html to image using webkit (qtwebkit). Static linked linux binary for i386 systems.

33684.1k5](/packages/h4cc-wkhtmltoimage-i386)[urlbox/screenshots

Use urlbox to easily generate website thumbnail screenshots from a URL

14262.1k](/packages/urlbox-screenshots)[choowx/rasterize-svg

A PHP library for converting SVG to JPEG, PNG, and WEBP

2283.6k](/packages/choowx-rasterize-svg)

PHPackages © 2026

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