Skip to content
Snippets Groups Projects
Commit 1579eabc authored by ezsh's avatar ezsh
Browse files

Fix balls vector art scaling

Closes #889.
parent cddd4878
No related branches found
No related tags found
No related merge requests found
...@@ -115,6 +115,8 @@ def splitFile(inputFile): ...@@ -115,6 +115,8 @@ def splitFile(inputFile):
svg = svg.replace('<g ', '<g data-transform="boob" ') # boob art uses the boob scaling svg = svg.replace('<g ', '<g data-transform="boob" ') # boob art uses the boob scaling
elif ("Belly" in i): elif ("Belly" in i):
svg = svg.replace('<g ', '<g data-transform="belly" ') # belly art uses the belly scaling svg = svg.replace('<g ', '<g data-transform="belly" ') # belly art uses the belly scaling
elif ("Balls" in i):
svg = svg.replace('<g ', '<g data-transform="balls" ') # balls art uses the balls scaling
else: else:
svg = svg.replace('<g ', '<g data-transform="art" ') # otherwise use default scaling svg = svg.replace('<g ', '<g data-transform="art" ') # otherwise use default scaling
if (not svg.endswith('\n')): if (not svg.endswith('\n')):
...@@ -138,4 +140,3 @@ if not os.path.exists(output_directory): ...@@ -138,4 +140,3 @@ if not os.path.exists(output_directory):
for f in args.input_file: for f in args.input_file:
splitFile(f) splitFile(f)
<svg viewBox="0 0 560 1000"><g data-transform="art" id="g5023"><path style="fill:#000000" sodipodi:nodetypes="ccccccc" d="m 257.66607,496.61899 c 4.14944,1.13097 8.46586,0.43899 9.39342,0.34412 7.94674,3.97257 15.70719,1.85262 19.64687,-6.1883 2.20344,-4.85122 -0.36417,-11.7545 -3.29443,-19.13452 -2.1949,-5.45385 -5.06156,-11.54066 -6.62573,-13.27699 -9.84786,-9.91781 -13.13813,-2.67766 -21.91172,15.67268 -4.86509,8.27714 -8.95386,19.27496 2.79159,22.58301 z" id="path1992-1"/><path sodipodi:nodetypes="ccccccc" d="m 258.20272,495.47299 c 3.92914,1.10083 8.0164,0.42729 8.89473,0.33495 7.52486,3.86671 14.8733,1.80325 18.60382,-6.0234 2.08647,-4.72194 -0.0776,-11.80627 -2.85234,-18.98964 -2.07837,-5.30852 -4.29067,-11.23314 -5.77179,-12.9232 -9.32505,-9.65353 -13.21001,-2.2413 -21.51782,15.62006 -4.60678,8.05657 -8.4785,18.76133 2.6434,21.98123 z" class="skin scrotum" id="path1992"/></g></svg> <svg viewBox="0 0 560 1000"><g data-transform="balls" id="g5023"><path style="fill:#000000" sodipodi:nodetypes="ccccccc" d="m 257.66607,496.61899 c 4.14944,1.13097 8.46586,0.43899 9.39342,0.34412 7.94674,3.97257 15.70719,1.85262 19.64687,-6.1883 2.20344,-4.85122 -0.36417,-11.7545 -3.29443,-19.13452 -2.1949,-5.45385 -5.06156,-11.54066 -6.62573,-13.27699 -9.84786,-9.91781 -13.13813,-2.67766 -21.91172,15.67268 -4.86509,8.27714 -8.95386,19.27496 2.79159,22.58301 z" id="path1992-1"/><path sodipodi:nodetypes="ccccccc" d="m 258.20272,495.47299 c 3.92914,1.10083 8.0164,0.42729 8.89473,0.33495 7.52486,3.86671 14.8733,1.80325 18.60382,-6.0234 2.08647,-4.72194 -0.0776,-11.80627 -2.85234,-18.98964 -2.07837,-5.30852 -4.29067,-11.23314 -5.77179,-12.9232 -9.32505,-9.65353 -13.21001,-2.2413 -21.51782,15.62006 -4.60678,8.05657 -8.4785,18.76133 2.6434,21.98123 z" class="skin scrotum" id="path1992"/></g></svg>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment