Hello folks,
we are trying to include the functionality of converting svg files to png in our web content management system ( ccHost ) mostly for ( openclipart.org ), I tried every possible solution using imagemagick and GD, but nothing did the job as of inkscape, so we decided to actually use inkscape for that ( below the php function that do this ), that cleared the biggest problem, but still have another one: inkscape have a GUI that means a lot of stuff needed to be installed on a "web server " to get inkscape running, but we are using inkscape from the command line and we don't need all that fancy GUI things..
So can you please help us shipping ( or doing this if possible for us ) a stand alone ( one file only ) copy of inkscape without GUI, just the command line,
in case we got a one file inkscape binary we can use in a lot of content management systems to actually add the functionality of converting and handling SVG files
it will be great if some one can do it, we need such thing a lot
Thank you all in advance.
Best regards,
Bassel Safadi
_______________________________________
php function that can handle svg to png converting using inkscape:
function convert_svg_png($path_to_inkscape, $svg_default_background, $images_path, $filename){
$filenamepng = str_replace(".svg", ".png", $filename);
//check if inkscape is exists
exec("".$path_to_inkscape."inkscape -V", $checkversion);
if ($checkversion[0]){
exec("".$path_to_inkscape."inkscape -e ".$images_path.$filenamepng." ".$images_path.$filename." --export-background=".$svg_default_background."", $output);
}else{
$output = "<b>Fatel Error: </b>Can't find (inkscape)";
}
return $output;
}