PNG2SGV icon indicating copy to clipboard operation
PNG2SGV copied to clipboard

Converting map png

Open IJmouri opened this issue 2 years ago • 3 comments

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 avatar Feb 28 '22 08:02 IJmouri

@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

cesarmiquel avatar Feb 28 '22 14:02 cesarmiquel

can i run the php file in browser with the svg image output?

IJmouri avatar May 14 '22 07:05 IJmouri

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.

cesarmiquel avatar May 14 '22 16:05 cesarmiquel