forked from sharonchoong/svg-exportJS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
51 lines (51 loc) · 1.55 KB
/
index.html
File metadata and controls
51 lines (51 loc) · 1.55 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SVG Export - Convert SVG to PNG/JPEG</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
line-height: 1.6;
max-width: 800px;
margin: 0 auto;
padding: 20px;
color: #333;
}
.container {
margin-top: 40px;
}
.button {
display: inline-block;
padding: 12px 24px;
background-color: #4CAF50;
color: white;
text-decoration: none;
border-radius: 4px;
margin-top: 20px;
}
.button:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<div class="container">
<h1>SVG Export</h1>
<p>
A lightweight JavaScript library for converting SVG elements to PNG or JPEG images in the browser.
Perfect for creating downloadable images from your SVG graphics.
</p>
<h2>Features</h2>
<ul>
<li>Convert SVG to PNG or JPEG</li>
<li>Specify custom dimensions</li>
<li>Browser-based conversion</li>
<li>No server-side processing required</li>
<li>Preserves SVG quality</li>
</ul>
<a href="examples/browser/index.html" class="button">View Live Example</a>
</div>
</body>
</html>