SVG to JPEG via PHP4 -
I am currently struggling with a side project, hope you can help me.
I am trying to convert SVG images into JPEG with PHP.
Basically I tried php_java.dll and jar, which comes with PHP 4.2.2 but I have never received any warnings, but I have ever managed to get simple test Not working. All the text about it is for JDK1.4 and one is for JDK1.2. This will enable me to use it.
That's why I looked very hard and saw secret references to SVG in JPEG. GD seems to be able to load and save JPEG, PNG, GIF, etc., but SVG is not straightforward. The GD seems to use a vector graphics format, but it is not entirely certain that it is SVG compatible (I am a noo for both).
I got it, but obviously Pearl is required - PHP and Lieutenant; -> Java I hate to go that route.
I found a site (which I can not get anymore) that discusses the speed of many SVG conversions with RSVG, Cairo and the other. Speaking of JPEG applications that convert SVG, people also discuss. Although this can work on a Linux box, while I am developing 99% on the server - so prefer a pure PHP solution and do not wrestle with the difference between applications on different platforms.
Now I am considering writing SVG-> GD converter. The last option is to use SVG in the browser. I can convert to JPEG on the server and serve the image in general.
Has anyone used any of the SVG-> GD, is aware of any OS (but no GPL) converters or any better idea?
It is not maintained, and I am not guaranty for this, but you It does not seem to be mentioned that you were trying to do with Batik.
I do not know if it helps or not.
Comments
Post a Comment