PHPackages                             bartdecorte/imagick-svg - 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. bartdecorte/imagick-svg

ActiveLibrary

bartdecorte/imagick-svg
=======================

Render SVGs using Imagick

1.2.1(4y ago)081MITPHPPHP ^8.0

Since Mar 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/bartdecorte/imagick-svg)[ Packagist](https://packagist.org/packages/bartdecorte/imagick-svg)[ Docs](https://github.com/bartdecorte/imagick-svg)[ RSS](/packages/bartdecorte-imagick-svg/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

Imagick SVG
===========

[](#imagick-svg)

[![Latest Version on Packagist](https://camo.githubusercontent.com/55b2336dd1e7c5948df0ab1999030c538a88c90f1b56a51e96147ddee8551d73/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626172746465636f7274652f696d616769636b2d7376672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bartdecorte/imagick-svg)[![Total Downloads](https://camo.githubusercontent.com/7a8970a74ae745de2f8854ecb98b13ced9645b534a006e81681b7780ce4b6b80/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626172746465636f7274652f696d616769636b2d7376672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bartdecorte/imagick-svg)[![run-tests](https://github.com/bartdecorte/imagick-svg/actions/workflows/main.yml/badge.svg)](https://github.com/bartdecorte/imagick-svg/actions/workflows/main.yml)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

This package parses SVG files and executes those operations on an ImagickDraw instance.

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

[](#installation)

```
composer require bartdecorte/imagick-svg
```

Supported SVG features
----------------------

[](#supported-svg-features)

This package does not support the full SVG standard (yet). However, through adapting SVG files before feeding them in, most SVGs should be rendered correctly.

Some pointers:

- Convert internal CSS &amp; inline styles to presentation attributes
- Expand all elements (including strokes)

I'm looking to extend support in the near feature, feel free to open issues to request features, or better still, make a pull request.

### Elements

[](#elements)

- rect
- circle
- ellipse
- polygon
- path
- g

### Attributes

[](#attributes)

- transform
- fill

### Internal CSS &amp; inline style

[](#internal-css--inline-style)

Currently unsupported, use presentation attributes instead

Usage
-----

[](#usage)

```
