RedMadRobot / figma-export

Command line utility to export colors, typography, icons and images from Figma to Xcode / Android Studio project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error save file when download image in webp

Sx1a9z4f opened this issue · comments

Снимок экрана 2022-09-08 в 19 12 20

but for png format everything is fine

at the same time, you can see that the "card / blocked" format is parsed as "card___blocked"

Hi. Thanks for the issue. Could you please show me your figma-export.yaml file? Could you please also show me original name of the illustration (component)? Like this:
image

Снимок экрана 2022-09-12 в 16 27 50

Снимок экрана 2022-09-12 в 16 28 15

You have wrong nameValidateRegexp/nameReplaceRegexp:

When nameReplaceRegExp applied name becomes illustration_card _ blocked. Next, spaces replaced with _. Name becomes illustration_card___blocked.

image

Hi, @Sx1a9z4f. Did you resolve the issue? Do you need additional help?

commented

I have the same issue on our gitlab ci/cd, but locally everything is fine

Error: The file “img_132_duration_1.webp” doesn’t exist.
regex rule not specified in figma-export.yaml file
Снимок экрана 2023-02-28 в 12 26 18
Could you help me?

Do you have cwebp utility on your gitlab runner?

commented

That was the problem! thank you!

Hey - this was an issue for me locally as well. I believe the documentation could contain some instruction on running
brew install webp if the format is set to webp, especially as the error message isn't really clear that it was unable to convert the files. Maybe that can be also improved. But this thread and your answers were helpful anyway, thanks!