RedMadRobot / figma-export

Command line utility to export colors, typography, icons and images from Figma to Xcode / Android Studio project
MIT License
718 stars 114 forks source link

Error save file when download image in webp #187

Closed Sx1a9z4f closed 1 year ago

Sx1a9z4f commented 1 year ago
Снимок экрана 2022-09-08 в 19 12 20

but for png format everything is fine

Sx1a9z4f commented 1 year ago

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

subdan commented 1 year ago

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
Sx1a9z4f commented 1 year ago
Снимок экрана 2022-09-12 в 16 27 50 Снимок экрана 2022-09-12 в 16 28 15
subdan commented 1 year ago

You have wrong nameValidateRegexp/nameReplaceRegexp:

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

image
subdan commented 1 year ago

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

ink1804 commented 1 year ago

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?

subdan commented 1 year ago

Do you have cwebp utility on your gitlab runner?

ink1804 commented 1 year ago

That was the problem! thank you!

pettsme commented 8 months ago

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!