This package provides an easy to work with class to convert image's to svg.
The package can be installed via composer:
composer require programeriss/pix2svg
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.
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.