Re: image2svg - A class converting Images to standalone SVG
| From: | Brent Cook | Date: | Tue, 30 Apr 2002 01:41:40 +0000 |
| Subject: | Re: image2svg - A class converting Images to standalone SVG | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-5908@lists.php.net to get a copy of this message | ||
On Mon, 29 Apr 2002, Urs Gehrig wrote:
> dear all
>
> image2svg - A class converting Images to standalone SVG
> -------------------------------------------------------
>
> after seeking something similar on the net and not being satisfied with what
> i found, i have written a class, that converts images [jpg, png and gif] to
> standalon svg files.
>
> please have a look at the source files and an example on:
>
> http://www.circle.ch/php/
>
> i think the class would fit very good into pear, since there is a class to
> convert svg to images as well, which would round up the whole thing.
>
> thanks for any feedback.
>
> best regards, urs
>
I tried this out, and while it seems to work (well, it generated
something; I didn't get around to getting a SVG browser to view it with),
could you explain why someone would want to convert a bitmap into this
format?
This seems to defeat the notions of "scalable" and "vector", unless it
does edge detection and actually generates vectors ;) Since, according to
the code, the SVG is 30% larger than the source image, it seems to only
have drawbacks.
Code's nice though!
- Brent