Jump to content
  • 0

Из svg в png


Неугомонный
 Share

Question

Как из этого сделать .png изображения? , видел есть конвертеры онлайн, но че то не получается у меня правильно переместить в .svg файл данные

<svg aria-hidden="true" style="" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
	<defs>
		<symbol id="icon-user" viewBox="0 0 32 32">
			<title>user</title>
			<path d="M15.782 0.381c-4.405 0-8 3.595-8 8s3.595 8 8 8 8-3.595 8-8c0-4.405-3.595-8-8-8zM15.782 2.667c3.17 0 5.714 2.545 5.714 5.714s-2.545 5.714-5.714 5.714c-3.169 0-5.714-2.545-5.714-5.714s2.545-5.714 5.714-5.714z"></path>
			<path d="M16 18.667c-8.515 0-15.619 5.867-15.619 13.333h2.286c0-5.999 5.858-11.048 13.333-11.048s13.333 5.049 13.333 11.048h2.286c0-7.466-7.104-13.333-15.619-13.333z"></path>
		</symbol>
		<symbol id="icon-search" viewBox="0 0 31 32">
			<title>search</title>
			<path d="M14.76 0.483c-7.706 0-14.005 6.094-14.005 13.622s6.299 13.625 14.005 13.625c7.706 0 14.005-6.096 14.005-13.625s-6.299-13.622-14.005-13.622zM14.76 2.57c6.611 0 11.918 5.169 11.918 11.535s-5.307 11.538-11.918 11.538c-6.611 0-11.918-5.171-11.918-11.538s5.307-11.535 11.918-11.535z"></path>
			<path d="M23.009 22.336l-1.454 1.497 7.424 7.204 1.451-1.497-0.747-0.728-6.674-6.476z"></path>
		</symbol>
		<symbol id="icon-shop" viewBox="0 0 31 32">
			<title>shop</title>
			<path d="M0.364 0.364v2.182h2.48l2.974 18.938 0.17 1.077 2.153-0.338-0.168-1.077-3.264-20.781h-4.347z"></path>
			<path d="M3.577 6.744l0.173 1.241 2.028 14.625h20.324l3.909-15.866h-26.435zM6.085 8.926h21.142l-2.835 11.503h-16.713l-1.594-11.503z"></path>
			<path d="M10.080 24.164c-2.054 0-3.75 1.683-3.75 3.736s1.696 3.736 3.75 3.736 3.747-1.683 3.747-3.736c0-2.053-1.693-3.736-3.747-3.736zM10.080 26.346c0.881 0 1.565 0.686 1.565 1.554s-0.684 1.554-1.565 1.554-1.568-0.686-1.568-1.554 0.687-1.554 1.568-1.554z"></path>
			<path d="M23.366 24.164c-2.054 0-3.75 1.683-3.75 3.736s1.696 3.736 3.75 3.736 3.747-1.683 3.747-3.736c0-2.053-1.693-3.736-3.747-3.736zM23.366 26.346c0.881 0 1.565 0.686 1.565 1.554s-0.684 1.554-1.565 1.554c-0.881 0-1.568-0.686-1.568-1.554s0.687-1.554 1.568-1.554z"></path>
		</symbol>
	</defs>
</svg>

 

Edited by Неугомонный
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
53 минуты назад, npofopr сказал:

Дак это спрайт из 3 иконок. 

Сохраните каждую иконку по отдельности, да сделайте png спрайт какой вам надо. 

Можно пример как это делается ?

Edited by Неугомонный
Link to comment
Share on other sites

  • 0

Например, первая иконка

<svg id="icon-user" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
			<title>user</title>
			<path d="M15.782 0.381c-4.405 0-8 3.595-8 8s3.595 8 8 8 8-3.595 8-8c0-4.405-3.595-8-8-8zM15.782 2.667c3.17 0 5.714 2.545 5.714 5.714s-2.545 5.714-5.714 5.714c-3.169 0-5.714-2.545-5.714-5.714s2.545-5.714 5.714-5.714z"></path>
			<path d="M16 18.667c-8.515 0-15.619 5.867-15.619 13.333h2.286c0-5.999 5.858-11.048 13.333-11.048s13.333 5.049 13.333 11.048h2.286c0-7.466-7.104-13.333-15.619-13.333z"></path>
		</svg>

 

её уже любым конвертером в png сохраните. 
ну или в иллюстраторе, или чем вы пользуетесь. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy