-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
190 lines (176 loc) · 9.13 KB
/
index.html
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!DOCTYPE html>
<html lang="en" class="scroller">
<head>
<meta charset="UTF-8">
<!-- <base href="https://lricci58.github.io/img-to-svg-code/"> -->
<title>Image to SVG Code | Online Converter</title>
<meta name="keywords"
content="image to svg converter, svg code generator, online svg converter, convert png to svg, convert jpg to svg, free image to svg tool, svg xml code, svg converter online, image to svg online, raster to vector converter, svg format, image to vector, convert webp to svg, scalable vector graphics, svg for web, optimize images for web, web design tools">
<meta name="description"
content="Convert images to SVG code instantly with this free online Image to SVG Code Converter. Upload PNG, JPG, or SVG files and get high-quality SVG code. No software download needed!">
<meta property="og:site_name" content="Image to SVG Code">
<meta property="og:url" content="https://lricci58.github.io/img-to-svg-code/">
<meta property="og:image" content="https://lricci58.github.io/img-to-svg-code/res/imgs/i2s_icon_325x325.png">
<meta property="og:locale" content="en_US">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<!-- CSS -->
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/home.css" async>
</head>
<body>
<main>
<header>
<h1>Free Online Image to SVG Code Converter</h1>
<p>Looking for a quick and easy way to convert your images to SVG format? This Image to SVG Code Converter
is the perfect solution! Whether you have a PNG, JPG, or even an existing SVG file, this tool will
instantly generate the corresponding SVG XML code for you. No downloads, no hassle — just upload your
image, and you're ready to go!
</p>
</header>
<!-- tool itself, interface -->
<section class="tool-container">
<div class="input-container">
<input id="image-input" type="file" accept="image/*">
<button class="upload-image-button" onclick="document.getElementById('image-input').click();">
<span class="mask-text">Upload your image</span>
</button>
<span class="upload-warning">Larger images may take a while to convert</span>
</div>
<div class="svg-code-container">
<h2>SVG Code</h2>
<div class="svg-code-output-container">
<textarea class="scroller" id="svg-code-output"></textarea>
<button id="copy-button">
Copy code
<img class="clipboard-ic" src="res/imgs/icons/clipboard.svg" alt="clipboard" loading="lazy">
<!-- <object data="res/imgs/icons/clipboard.svg" type="image/svg+xml"></object> -->
</button>
</div>
</div>
<div class="svg-preview-container">
<h2>Preview</h2>
<div id="svg-preview"></div>
</div>
</section>
<!-- features -->
<section>
<h2>A Flexible Tool</h2>
<ul>
<li>Convert Multiple Image Formats: Easily convert PNG, JPG, WEBP, and more to SVG format.</li>
<li>Get the SVG Code: Get the exact SVG XML code to embed directly into your HTML.</li>
<li>Optimize Your Web Performance: SVG files are lightweight, scalable, and perfect for web use.</li>
<li>Fast and Secure: Upload your files securely and get results in seconds.</li>
<li>Free to Use: No hidden costs, no sign-ups — just a simple, easy-to-use online tool.</li>
</ul>
</section>
<!-- how to use -->
<section>
<h2>Easy to Use</h2>
<ol>
<li>
Upload Your Image: Click the "Upload you image" button and select the image file you want to
convert. It supports PNG, JPG, JPEG, SVG and others.
</li>
<li>
Automatic Conversion: The tool will automatically process your image and generate the SVG code.
</li>
<li>
Copy the SVG Code: Preview the SVG output and simply copy the code to use on your website or
project.
</li>
</ol>
</section>
</main>
<footer>
<ul class="links">
<li>
<a class="links-icon" href="https://github.com/lricci58" target="_blank">
<img src="res/imgs/icons/github.svg" alt="github" loading="lazy">
<!-- <object data="res/imgs/icons/github.svg" type="image/svg+xml">Github</object> -->
</a>
</li>
<li>
<a class="links-icon" href="https://codepen.io/lricci58" target="_blank">
<img src="res/imgs/icons/codepen.svg" alt="codepen" loading="lazy">
<!-- <object data="res/imgs/icons/codepen.svg" type="image/svg+xml">CodePen</object> -->
</a>
</li>
<li>
<a class="links-icon" href="https://www.linkedin.com/in/lricci58/" target="_blank">
<img src="res/imgs/icons/linkedin.svg" alt="linkedin" loading="lazy">
<!-- <object data="res/imgs/icons/linkedin.svg" type="image/svg+xml">LinkedIn</object> -->
</a>
</li>
<li>
<a class="links-icon" href="https://www.instagram.com/lricci58/" target="_blank">
<img src="res/imgs/icons/instagram.svg" alt="instagram" loading="lazy">
<!-- <object data="res/imgs/icons/instagram.svg" type="image/svg+xml">Instagram</object> -->
</a>
</li>
<li>
<a class="links-icon" href="https://x.com/lricci58" target="_blank">
<img src="res/imgs/icons/twitter.svg" alt="twitter" loading="lazy">
<!-- <object data="res/imgs/icons/twitter.svg" type="image/svg+xml">Twitter</object> -->
</a>
</li>
</ul>
<p class="footer-text">
Made by <a href="https://lucasricci.vercel.app/" target="_blank">Lucas Ricci</a> |
Questions or feedback? Reach out here <a href="mailto:lucric2001@gmail.com"
target="_blank">lucric2001@gmail.com</a> |
View on <a href="https://github.com/lricci58/img-to-svg-code" target="_blank">GitHub</a>
</p>
</footer>
<!-- JavaScript -->
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js" defer></script> -->
<script src="js/libs/imagetracerjs-master/imagetracer_v1.2.6.js" defer></script>
<script src="js/base.js"></script>
<script src="js/home.js" defer></script>
<!-- Schema Markup -->
<script type="application/json+ld">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "Image to SVG-Code | Online Converter",
"url": "https://lricci58.github.io/img-to-svg-code/",
"description": "Convert images to SVG code instantly with this free online Image to SVG Code Converter. Upload PNG, JPG, or SVG files and get high-quality SVG code. No software download needed!",
"keywords": ["image to svg converter", "svg code generator", "online svg converter", "convert png to svg", "convert jpg to svg", "free image to svg tool", "svg xml code", "svg converter online", "image to svg online", "raster to vector converter", "svg format", "image to vector", "convert webp to svg", "scalable vector graphics", "svg for web", "optimize images for web", "web design tools"],
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://lricci58.github.io/img-to-svg-code/"
}
},
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "Image to SVG Code Converter",
"applicationCategory": "Web Development",
"operatingSystem": "All",
"browserRequirements": "Requires JavaScript enabled",
"url": "https://lricci58.github.io/img-to-svg-code/",
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD",
"category": "Free"
},
"featureList": [
"Convert PNG to SVG",
"Convert JPG to SVG",
"Convert WEBP to SVG",
"Generate SVG code from images",
"Online, no software download"
],
"description": "Free online tool to convert images to SVG code, supporting PNG, JPG, and WEBP formats.",
"sameAs": [
"https://github.com/lricci58",
"https://codepen.io/lricci58",
"https://www.linkedin.com/in/lricci58/",
"https://www.instagram.com/lricci58/",
"https://x.com/lricci58"
]
}
</script>
</body>
</html>