unrblt / phpsvg Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/phpsvg
Automatically exported from code.google.com/p/phpsvg
Use of embedded svg fonts does not seem to work.
Either when the svg font is defined in the svg file itself, or through source
uri specification.
What steps will reproduce the problem?
1. Using either glyph elements to define embedded font-face glyphs in the
<defs> section of the svg document,
2. loading an svg with <text> into svglib with SVGDocument::getInstance()
3. saving the svg as jpeg or any other format
What is the expected output? What do you see instead?
The expected output is to have the texts in the right defined embedded font.
When opening the svg file before it is parsed by the library it shows the text
in the correct fonts. So the original file is correct.
What version of the product are you using? On what operating system?
Version 0.8, the server is ubuntu.
Original issue reported on code.google.com by [email protected]
on 16 Sep 2013 at 2:22
Native support for transparent png.
Right now after creation of a png, a seperate library (gd or imagick) has to be
used to make a png tranpsarent.
Original issue reported on code.google.com by [email protected]
on 16 Sep 2013 at 2:24
Add support to edit styles.
Original issue reported on code.google.com by [email protected]
on 24 Mar 2011 at 2:39
Add support to paths objects.
Original issue reported on code.google.com by [email protected]
on 24 Mar 2011 at 2:39
When exporting to PDF the vecotrs are rasterized and become pixelated images.
It would be nice to keep the vectors in the PDF.
Original issue reported on code.google.com by [email protected]
on 16 Sep 2013 at 2:26
Cool project, would like to see it on Github so I can follow it more easily
Original issue reported on code.google.com by [email protected]
on 2 Aug 2013 at 12:09
What steps will reproduce the problem?
1. Open merge.svg.php from the examples
2. replace image.svg path with the one attached
3. run the php stript
What is the expected output? What do you see instead?
I expected to have the code.svg seamlessly merged with the other SVG.
But instead I get the errors:
Warning: SimpleXMLElement::addChild() [simplexmlelement.addchild]: Element name
is required in /www/htdocs/XXX/test/phpsvg/svglib/xmlelement.php on line 156
Warning: XmlElement::append() [xmlelement.append]: Node no longer exists in
/www/htdocs/XXX/test/phpsvg/svglib/xmlelement.php on line 158
Warning: XmlElement::append() [xmlelement.append]: Node no longer exists in
/www/htdocs/XXX/test/phpsvg/svglib/xmlelement.php on line 170
Warning: SimpleXMLElement::addChild() [simplexmlelement.addchild]: Element name
is required in /www/htdocs/XXX/test/phpsvg/svglib/xmlelement.php on line 156
Warning: XmlElement::append() [xmlelement.append]: Node no longer exists in
/www/htdocs/XXX/test/phpsvg/svglib/xmlelement.php on line 158
Warning: XmlElement::append() [xmlelement.append]: Node no longer exists in
/www/htdocs/XXX/test/phpsvg/svglib/xmlelement.php on line 170
What version of the product are you using? On what operating system?
PHPSVG 0.8
Please provide any additional information below.
The code.svg was created with TCPDF Datamatrix Module. It might be that the
TCPDF Datamatrix exporter does not a good job of creating all the necessary
attributes. In this case the author of phpSVG should point to the missing
atributes of the code.svg XML that are needed (if they really are).
Original issue reported on code.google.com by [email protected]
on 29 Apr 2015 at 2:06
Attachments:
Hi,
I was looking to use the script in a recent project to automate SVG to PNG
conversion for providing fallback images, but the output didn't take into
account the opacity set on various shapes. The shapes also gain a stroke that
they didn't have. If you upload the attached image into the conversion script
http://phpsvg.nostaljia.eng.br/example/upload_and_convert.php you will see what
I mean.
I was wondering if this can be achieved at all. Thanks
Original issue reported on code.google.com by [email protected]
on 10 Jun 2013 at 1:33
What steps will reproduce the problem?
1. svn checkout http://phpsvg.googlecode.com/svn/trunk/ phpsvg
2.
3.
What is the expected output? What do you see instead?
Expecting the repository to be downloaded but I get the following
svn: E175002: Unable to connect to a repository at URL
'http://phpsvg.googlecode.com/svn/trunk'
svn: E175002: The request OPTIONS returned an invalid XML in the réponse :
XML parse error at line 1: mismatched tag
(http://phpsvg.googlecode.com/svn/trunk)
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 3 Sep 2012 at 5:02
1. Create $svg from existing SVG file
2. Try to export it to EPS under non-root user (apache, for reference)
Expected: eps file
Instead: PHP Warning: file_put_contents(/tmptmp.svg): failed to open stream:
Permission denied in /var/www/projects/mpakki/test/public/svglib/svglib.php on
line 188
I tried version 0.8 on CentOS 6.4 and php 5.4
Original issue reported on code.google.com by [email protected]
on 11 Dec 2014 at 5:55
The style value should be last parameter for SVGRect::getInstance() and
SVGText::getInstance():
$rect = SVGRect::getInstance( 1, 1, 'myRect', 228, 185,
'fill:#f2f2f2;stroke:#e1a100;' );
...
$svg->addShape( SVGText::getInstance( 22, 50, 'myText', 'This is a text',
"font-size:56px;font-style:normal;") );
Original issue reported on code.google.com by [email protected]
on 16 Nov 2011 at 10:19
I'm using phpsvg for a project at my work (http://hacklab.com.br). It is
helping us a lot. So first of all thanks for publishing this library.
I just have found one minor performance issue in XmlElement::prettyXML(). When
trying to output a SVG with images using SVGDocument::asXML() the process is
really slow because of the several calls to preg_match() performed in
XmlElement::prettyXML().
From what I could understand XmlElement::prettyXML() is used only to make the
printed XML prettier. Is that correct? If so, what about a new parameter to
SVGDocument::asXML() to control whether the XML should be formated or not? I'm
attaching a patch with this proposed change.
For the moment, to overcome the performance problem I'm creating a new class
that extends SVGdocument and overriding XmlElement::prettyXML() in it. I
haven't investigate how to improve the performance in XmlElement::prettyXML().
More information below:
What steps will reproduce the problem?
$svg = SVGDocument::getInstance();
$svg->addShape(SVGImage::getInstance(0, 0, 'myImage', 'pathToSomeImage'));
echo $svg->asXML();
What version of the product are you using? On what operating system?
phpsvg 1.1 on Ubuntu 11.10
Thanks!
Original issue reported on code.google.com by [email protected]
on 23 May 2012 at 2:32
Attachments:
Add support to basic shapes and polygon.
Original issue reported on code.google.com by [email protected]
on 24 Mar 2011 at 2:40
Just wondering if anyone continues to maintain this library. I've just started
using it and it works not too badly. Just came across some culprits and wonder
if it's worth reporting them.
A main problem currently is that the SVGText class doesn't seem to be working.
Original issue reported on code.google.com by [email protected]
on 6 Aug 2013 at 2:22
Support shapes transformantion.
Original issue reported on code.google.com by [email protected]
on 24 Mar 2011 at 2:39
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.