Skip to content

Find the points, associated with the svg path of an arbitrary image, in a fast and easy way.

License

Notifications You must be signed in to change notification settings

trozler/ImageToPoints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image to path - a fast and simple implmentation.

new versionimagtracerLicense

This code takes any image (png, jpeg, svg, gif) as input, it then traces the outline of the image (by converting the image to an svg), and outputs the path of the image in terms of cartesian coordinates to console.

Important notes - update 30th July 2020. V2 release.

  • The output in version 2 is a 2D array, where each sub array corresponds to the cartesian coordinates of a single svg path element, within the correspoding svg of the image. Recall an svg can have several path elements.
  • These subarrays can be concatonated to a single array without worriying about destroying anything (as was in V1). The output format is meant to give the user more clarity.
  • The number of sample points can be increased in main.js.

How to run

  • node.js: npm install and then of you go.

About

Find the points, associated with the svg path of an arbitrary image, in a fast and easy way.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published