-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rasterization does not handle gradients, transforms, implicit commands #30
Comments
I agree, that is a terrible result. Thank you for making the effort of reporting your experience. Could you perhaps send a link to the original SVG file so that I have something to test with? |
There is some progress. The result is still nowhere near the original, but it's getting better. (This comment will be updated whenever things improve.) Task list for tracking things that need to be implemented:
|
any update on this? |
I tried Your own example provided in README.md under "Rasterizing" and it ignores stroke-width. |
Code from example:
<?php
require_once __DIR__.'/php-svg/autoloader.php';
use SVG\SVGImage;
$image = SVGImage::fromFile("bodygraph.svg");
$rasterImage = $image->toRasterImage(600, 600);
header('Content-Type: image/png');
imagepng($rasterImage);
?>
Original SVG Image:
Rendered PNG Image:
The text was updated successfully, but these errors were encountered: