Function details: Some Librsvg-Bugs should be repaired:
sed -i "s/<style>/<style type=\"text\/css\">/"
(f.e. File:Cityfone_logo.svg)sed -ri 's/stroke-dasharray=\"([[:digit:]\., ]*)([[:digit:]\.]+) ([[:digit:]\., ]+)\"/stroke-dasharray=\"\1\2,\3\"/g'
(f.e. File:EKG-Reto_001.svg)sed -ri "s/<mask([[:alnum:] =\"]*) maskUnits=\"userSpaceOnUse\"( id=\"[[:alnum:]_]+\"|)>/<mask\1\2>/g"
(f.e. File:SVG_mask.svg)sed -ri "s/font-family=\"'([-[:alnum:] ]*)'(|,[-[:lower:]]+)\"/font-family=\'\1\'/g"
(f.e. File:T184369.svg)sed -ri "s/<tspan([-[:alnum:]\.\"\#\ =]*) x=\"([-[:digit:]\.]+)( |,)([-[:digit:]\. ,]+)\"([-[:alnum:]\.\"\#\ =]*)>/<tspan x=\"\2\" \1 \5>/g"
(f.e. File:WI_Area_Codes.svg)sed -ri "s/<tspan([-[:alnum:]\.\"\#\ =]*) x=\"([-[:digit:]\.]+)( |,)([-[:digit:]\. ,]+)\"([-[:alnum:]\.\"\#\ =]*)>([[:alnum:]])/<tspan x=\"\2\" \1 \5>\6<\/tspan><tspan x=\"\4\" \1 \5>/g"
(f.e. File:Kalliauer_et_al_2018_Acta_Mechanica_Fig11.svg)sed -i "s/ xlink:href=\"data:image\/jpg;base64,/ xlink:href=\"data:image\/jpeg;base64,/g"
(f.e. File:Barents_Sea_map_hr.svg)sed -ri "s/<svg([-[:alnum:]=\" ]*) viewBox=\"0,0,([[:digit:]\.]*),([[:digit:]\.]*)\"/<svg\1 viewBox=\"0 0 \2 \3\"/g"
(f.e. File:WikiImplementationBug_T194192.svg)sed -ri -e ':a' -e 'N' -e '$!ba' -e "s/<\!\[CDATA\[([[:alnum:]=+\/\t\n[:space:]@:;\(\)\"\,\'\{\}\-])*\t\]\]>[[:space:]]*//g"
(f.e. File:Map-Awala_Yalimpo.svg)sed -ri -e ':a' -e 'N' -e '$!ba' -e "s/<xapGImg:image>([[:alnum:][:space:]\/+])*={0,2}[[:space:]]*<\/xapGImg:image>//g"
(f.e. File:Harta_dialectului_lemosin.svg)sed -i "s/ xlink:href=\"data:;base64,\/9j\/4AAQSkZJRgABAgAAZABkAAD\/7AARRHVja3kAAQAEAAAAHgAA/ xlink:href=\"data:image\/jpeg;base64,\/9j\/4AAQSkZJRgABAgAAZABkAAD\/7AARRHVja3kAAQAEAAAAHgAA/"
(f.e. File:Asia.svg) sed -ri "s/ xlink:href=\"data:;base64,( |)iVBORw0KGgoAAAANSUhEUgAA/ xlink:href=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAA/"
(f.e. File:Historical_map_of_Georgia_1267_BC.svg)stroke-dasharray
in PNG thumbnails does not support spaces as separatorsflowRoot
(defined only in deprecated SVG 1.2 draft) not supported by rsvgtype="text/css"
attribute is specifiedfont-family="'font name'"
and style="font-family:'font name'"
does not work in SVG renderingviewBox="0,0,620,472"
should be the same as viewBox="0 0 620 472"
If the Error "500 - Internal Server Error" occurs, the web service has to be restarted. You have to message JoKalliauer to fix it. (see below)