- Download Figma image nodes
- Convert PNG to WebP
- Convert PNG to AVIF
- MacOS (Apple Silicon/Intel)
You can install fig2img using Homebrew:
brew tap geonhyeoklee/fig2img
brew install fig2img
Verify the installation:
fig2img --version
Alternatively, you can:
- Download the latest release from GitHub Releases page
- You can either:
- Run the executable from the downloaded location using the usage instructions below
- Move it to
/usr/local/bin
to run it from anywhere in your system
Note: On macOS, you might need to grant security permissions to run the executable.
Set up your environment variables:
# fig2img
export FIGMA_ACCESS_TOKEN="YOUR_ACCESS_TOKEN"
export FIGMA_FILE_KEY="YOUR_FILE_KEY"
# fig2img end
fig2img download --output "YOUR_DIRECTORY"
fig2img convert --input "YOUR_DIRECTORY" --output "YOUR_DIRECTORY"
fig2img convert --input "YOUR_DIRECTORY" --output "YOUR_DIRECTORY" --format webp
fig2img convert --input "YOUR_DIRECTORY" --output "YOUR_DIRECTORY" --format avif
For benchmark results, see benchmark_results.csv