Download-Figma-Images
Extract SVG and PNG images from Figma files by specifying node IDs. Save files to a designated local directory with customizable export options for SVG and PNG formats.
Instructions
Download SVG and PNG images used in a Figma file based on the IDs of image or icon nodes
Input Schema
Name | Required | Description | Default |
---|---|---|---|
fileKey | Yes | The key of the Figma file containing the node | |
localPath | Yes | The absolute path to the directory where images are stored in the project. If the directory does not exist, it will be created. The format of this path should respect the directory format of the operating system you are running on. Don't use any special character escaping in the path name either. | |
nodes | Yes | The nodes to fetch as images | |
pngScale | No | Export scale for PNG images. Optional, defaults to 2 if not specified. Affects PNG images only. | |
svgOptions | No | Options for SVG export |