figma-export icon indicating copy to clipboard operation
figma-export copied to clipboard

Error save file when download image in webp

Open Sx1a9z4f opened this issue 2 years ago • 4 comments

Снимок экрана 2022-09-08 в 19 12 20 but for png format everything is fine

Sx1a9z4f avatar Sep 08 '22 15:09 Sx1a9z4f

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

Sx1a9z4f avatar Sep 08 '22 15:09 Sx1a9z4f

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

subdan avatar Sep 09 '22 18:09 subdan

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

Sx1a9z4f avatar Sep 12 '22 12:09 Sx1a9z4f

You have wrong nameValidateRegexp/nameReplaceRegexp:

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

image

subdan avatar Sep 12 '22 20:09 subdan

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

subdan avatar Nov 13 '22 09:11 subdan

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?

ink1804 avatar Feb 28 '23 08:02 ink1804

Do you have cwebp utility on your gitlab runner?

subdan avatar Mar 05 '23 07:03 subdan

That was the problem! thank you!

ink1804 avatar Mar 06 '23 09:03 ink1804

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!

pettsme avatar Nov 08 '23 12:11 pettsme