Photoshop Custom Shape to SVG path string

前端 未结 5 935
清酒与你
清酒与你 2021-01-30 05:19

Is there any way to get the SVG path string off a Photoshop custom shape or path? Or is there another way to get/construct similar data? I\'m looking to do something similar to

5条回答
  •  别那么骄傲
    2021-01-30 05:58

    Update: in recent versions of Photoshop, there is a built-in option to export the image as SVG, which works well on paths and custom shapes. Just do:

    File -> Export -> Export as... and select SVG in the file settings.

    Original Answer:

    Starting from Photoshop CC 14.2, you can create SVG files directly from Photoshop:

    1. Create a file named generator.json with the content below in your user home folder.
    2. Restart Photoshop and open your PSD file.
    3. Activate the generator: File > Generate > Image Assets.
    4. Rename your layer to .svg.
    5. The svg file will be created in the assets directory next to your PSD file.

    Content for generator.json:

    {
        "generator-assets":  { 
            "svg-enabled": true
        }
    }
    

    Source: http://creativedroplets.com/generate-svg-with-photoshop-cc-beta/

提交回复
热议问题