Coder Social home page Coder Social logo

phpsvg's People

Watchers

 avatar  avatar

phpsvg's Issues

Embedded fonts not working

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

Support for transparency in PNGs

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

Style

Add support to edit styles.

Original issue reported on code.google.com by [email protected] on 24 Mar 2011 at 2:39

Path

Add support to paths objects.

Original issue reported on code.google.com by [email protected] on 24 Mar 2011 at 2:39

Merging SVG failes on TCPDF created Datamatrix codes

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:

Conversion with layer opacity


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

svn generates an error messages

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

Wrong tmp file name while export to EPS

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

Errors in code example from summary page

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

Performance issues with XmlElement::prettyXML() when using images

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:

Is this library still maintained

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.