PNG2SGV
PNG2SGV copied to clipboard
Converting map png
Is it possible to use this code for map png image to svg? I have tried this code but there is no output, though in inspect there are svg codes. I wonder why this is happening. Can you please explain?
@IJmouri This code will basically convert each pixel into a square in SVG format with the bg color. It's meant to convert pixel artwork. These images where converted to SVG (and then back to PNG) with the code: https://hypro.tumblr.com/post/13101851805/siguiendo-con-mario-ahora-estuve-jugando-con and https://hypro.tumblr.com/post/81957542288/i-created-these-by-copying-the-pixel-map-images
can i run the php file in browser with the svg image output?
Not sure what you mean. The script needs to run on a server with PHP (for example Apache/NGinx + php_fpm) and you can view the output on the browser. You would probably need to modify it so that you provide the PNG image as a $_GET parameter. Right now its designed for command line.