سلام دوستان
چطور می تونیم فرمت png را به کد svg تبدیل گنیم
نمونه کد را ببینید
منتظر پاسختان هستم
با تشکر
<rect x="12.834" y="7.016" fill="#46F9D7" width="64.8" height="10.8"/>
<rect x="72.234" y="69.116" fill="#46F9D7" width="64.8" height="10.8"/>
<path fill="#434345" d="M157.029,170.816H6.036c-0.994,0-1.8-0.807-1.8-1.801s0.806-1.8,1.8-1.8h150.993c0.994,0,1.8,0.806,1.8,1.8
S158.023,170.816,157.029,170.816"/>
<path fill="#434345" d="M12.833,168.116c-0.994,0-1.8-0.806-1.8-1.8V7.016c0-0.994,0.806-1.8,1.8-1.8h64.8
c0.994,0,1.8,0.806,1.8,1.8v59.4c0,0.994-0.806,1.8-1.8,1.8c-0.994,0-1.8-0.806-1.8-1.8v-57.6h-61.2v157.5
C14.634,167.311,13.828,168.116,12.833,168.116"/>
<path fill="#434345" d="M147.834,168.116c-0.994,0-1.801-0.806-1.801-1.8v-40.5c0-0.994,0.807-1.801,1.801-1.801
s1.8,0.807,1.8,1.801v40.5C149.634,167.311,148.828,168.116,147.834,168.116"/>
<path fill="#434345" d="M147.834,147.416c-11.91,0-21.601-9.689-21.601-21.6s9.69-21.601,21.601-21.601s21.6,9.69,21.6,21.601
S159.744,147.416,147.834,147.416 M147.834,107.816c-9.926,0-18,8.074-18,18s8.074,18,18,18c9.925,0,18-8.074,18-18
S157.759,107.816,147.834,107.816"/>
<path fill="#434345" d="M74.934,19.616h-59.4c-0.994,0-1.8-0.806-1.8-1.8c0-0.994,0.806-1.8,1.8-1.8h59.4c0.994,0,1.8,0.806,1.8,1.8
C76.734,18.81,75.928,19.616,74.934,19.616"/>
<path fill="#434345" d="M137.033,168.116c-0.994,0-1.8-0.806-1.8-1.8v-22.5c0-0.994,0.806-1.801,1.8-1.801s1.801,0.807,1.801,1.801
v22.5C138.834,167.311,138.027,168.116,137.033,168.116"/>
<path fill="#434345" d="M72.233,168.116c-0.994,0-1.8-0.806-1.8-1.8v-97.2c0-0.994,0.806-1.8,1.8-1.8h64.8
c0.994,0,1.801,0.806,1.801,1.8v38.7c0,0.994-0.807,1.8-1.801,1.8s-1.8-0.806-1.8-1.8v-36.9h-61.2v95.4
C74.034,167.311,73.228,168.116,72.233,168.116"/>
<path fill="#434345" d="M134.334,81.716h-59.4c-0.994,0-1.8-0.806-1.8-1.8c0-0.994,0.806-1.8,1.8-1.8h59.4
c0.994,0,1.8,0.806,1.8,1.8C136.134,80.91,135.328,81.716,134.334,81.716"/>
<path fill="#434345" d="M45.233,35.816c-0.994,0-1.8-0.806-1.8-1.8v-5.4c0-0.994,0.806-1.8,1.8-1.8s1.8,0.806,1.8,1.8v5.4
C47.034,35.01,46.228,35.816,45.233,35.816"/>
<path fill="#434345" d="M61.434,35.816c-0.994,0-1.8-0.806-1.8-1.8v-5.4c0-0.994,0.806-1.8,1.8-1.8s1.8,0.806,1.8,1.8v5.4
C63.234,35.01,62.428,35.816,61.434,35.816"/>
<path fill="#434345" d="M29.034,35.816c-0.99
@ramin.laravel
سلام. سایت هایی هستند که این کار رو انجام میدند. لینکهای زیر:
https://www.pngtosvg.com/
https://image.online-convert.com/convert-to-svg
چنانچه سرچ کنید، باز هم پیدا میکنید.
@ramin.laravel
در سوالتون به سورس کد اشارهای نکرده بودید.
این ابزارها یه مکانیزم پردازش تصویر و یه الگوریتم تبدیل تصویر پردازش شده به وکتور دارند. چند نمونه از این ابزارها رو میتونید در لینکهای زیر ببینید.
https://www.npmjs.com/package/png2svg - جاوااسکریپت
https://github.com/xyproto/png2svg - زبان Go
https://github.com/ianmackinnon/png2svg - پایتون
https://github.com/fabiensanglard/png2svg - سی پلاس پلاس
آیا مایل به ارسال نوتیفیکیشن و اخبار از طرف راکت هستید ؟