forked from JoKalliauer/convert
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathT36947.html
More file actions
109 lines (95 loc) · 5.14 KB
/
T36947.html
File metadata and controls
109 lines (95 loc) · 5.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html>
<head>
<title>T36947</title>
<meta charset="UTF-8">
</head>
<body style="font-family:Arial,Helvetica,sans-serif;">
<!--
<h1>Convert PDF to SVG (<a href="https://tools.wmflabs.org/convert/">Rilkes convert tool</a>)</h1>
<form action="pdf2svg.php" method="POST" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
<input type="file" name="file" id="file" accept="application/pdf" />
<input type="submit" name="submit" value="Convert to SVG" />
</form>
<h1>Convert SVG to PNG (<a href="https://tools.wmflabs.org/convert/">Rilkes convert tool</a>)</h1>
<form action="svg2png.php" method="POST" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
<input type="file" name="file" id="file" accept="image/svg+xml" />
<input type="submit" name="submit" value="Convert to PNG" />
<br />
<input type="checkbox" name="no-antialiasing" value="1" id="no-antialiasing" /><label for="no-antialiasing"> disable <a href="//wikipedia.org/wiki/anti-aliasing">anti-aliasing</a> (experimental)</label>
</form>
-->
<h1>Repair SVGs and make Workarounds for librsvg</h1>
<form action="T36947.php" method="POST" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="1597440" />
<input type="file" name="file" id="file" accept="image/svg+xml" />
<input type="submit" name="submit" value="Convert to SVG" />
<br />
<input type="checkbox" name="svgcleaner" value="1" id="svgcleaner" /><label for="svgcleaner"> run svgcleaner</label>
<br />
<input type="checkbox" name="scour" value="1" id="scour" /><label for="scour"> run scour</label>
<br />
<input type="checkbox" name="valid" value="1" id="valid" /><label for="valid"> make file valid (not recommended, always uses scour)</label>
<br />
<input type="checkbox" name="kerning" value="1" id="kerning" /><label for="valid"> https://phabricator.wikimedia.org/T36947</label>
<!--
<br />
<input type="checkbox" name="RunInkscape" value="1" id="RunInkscape" /><label for="RunInkscape"> convert flowRoot to text by Inkscape</label>
<br />
<input type="checkbox" name="svgo" value="1" id="svgo" /><label for="svgo"> run svgo (not implemented)</label>
<br />
<input type="checkbox" name="fallback" value="1" id="fallback" /><label for="fallback"> add fallback-fonts, replace fonts (not implemented)</label>
<br />
<input type="checkbox" name="extended" value="1" id="extended" /><label for="extended"> use extended version (not implemented)</label>
-->
</form>
----
<h1>Extract PNG from FakeSVG</h1>
<form action="fakesvg2png.php" method="POST" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="1728180" /><!-- 1470464 -->
<input type="file" name="file" id="file" accept="image/svg+xml" />
<input type="submit" name="submit" value="Extract PNG" />
</form>
<!--
<br />
<input type="checkbox" name="nocompress" value="1" id="nocompress" /><label for="nocompress">do not compress image (for large files)</label>
<h1>Test Output=Input</h1>
<form action="keep.php" method="POST" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
<input type="file" name="file" id="file" accept="image/svg+xml" />
<input type="submit" name="submit" value="Copy" />
</form>
-->
----
<h1>webservice restart</h1>
<form action="restart.php" method="POST" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="1728180" />
<input type="file" name="file" id="file" accept="image/svg+xml" />
<input type="submit" name="submit" value="restart" />
</form>
<p>If the Error "500 - Internal Server Error" ocours, the webservice hast to be restarted. There will be a button implemented, but now you have to message JoKalliauer to fix it. (see below)</p>
<br /><br />
This tool can only convert svgs till about 1MB.
<!--
<h1>This tool can only convert svgs till 63kB. (Don't ask me why! Help needed!)</h1>
Exact limit seems to be 65 143 Bytes (including filename)
-->
<!--<h1>Currently the tool is under development 25.03.2019, and maybe does not work. The maintainer try to solve it.</h1>-->
<div style="height:100px;" class="od-spacer"></div>
<div style="color:white">
<div style="width:18%; border-bottom: 2px solid #396; float: left;"> </div>
<div style="width:18%; border-bottom: 2px solid #A7D7F9; float: left;"> </div>
<div style="width:18%; border-bottom: 2px solid #666; float: left;"> </div>
</div>
<div style="clear:left; margin-top: 0.3em">This tool is maintained by <a href="//commons.wikimedia.org/wiki/User:JoKalliauer">Johannes Kalliauer</a>.
The source-code is available <a href="https://github.com/JoKalliauer/cleanupSVG">On GitHub</a>
<br/>
This website is based on <a href="https://tools.wmflabs.org/convert/">https://tools.wmflabs.org/convert/</a> by <a href="//commons.wikimedia.org/wiki/User:Rillke">Rillke</a> and others, source: <a href="https://github.com/Rillke/convert">GitHub</a>.</div>
<br/><br/>
Contact:
<br/><a href="https://commons.wikimedia.org/wiki/User_talk:SVGWorkaroundBot">https://commons.wikimedia.org/wiki/User_talk:SVGWorkaroundBot</a>
<br/><a href="https://github.com/JoKalliauer/convert">https://github.com/JoKalliauer/convert</a>
</body>
</html>