Get path geometry from image

前端 未结 7 1249
忘掉有多难
忘掉有多难 2020-12-31 08:36

If i have a logo, let\'s say done as a jpg or even a png. Any suggestion for how I can use that to define a path geometry? It would be really good if any suggestions could

相关标签:
7条回答
  • 2020-12-31 09:06

    I have a good idea but you're png, bmp, jpg or other non vector file is must be very simple because we need best scan results and only use inkscape.

    1. Step: Drag and drop your file workspace on Inkscape, download free.

    Tip: If your image is color white, Top menu item File->Document Properties-> heck Checkerboard Background and if you want uncheck Page border show.

    1. Step: Top menu item Path-> Trace Bitmap-> Mode check what you want property, i usually use color property and if your file is png check Remove Background then click OK, then wait again Ok button is Enable and close window.
    2. Step: Now you have a two layer, top layer vektor file and bottom layer your file. Select vector file and top menu item Edit-> XML Editor-> select svg path and look side column, d name propery in your data path value.

    If you get complicated, you can look at the my gif.

    But this method may not always work or may not give the desired results and draw your own shapes with the scape so you can get the path data from the XML editor.

    Example, my first tests this like:

    and after working on it some more:

    0 讨论(0)
提交回复
热议问题