Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradient color not properly exported #448

Open
stevdza-san opened this issue Feb 15, 2023 · 2 comments
Open

Gradient color not properly exported #448

stevdza-san opened this issue Feb 15, 2023 · 2 comments

Comments

@stevdza-san
Copy link

First I want to say thank you for making this library, it's quite useful. :)
I've experience a strange result while trying to export an element colored in gradient(two colors). The image that I've exported is not the same as the one I have on my page. The exported one, looks like a single color, and not two color gradient. I'm using FileSaver lib for image exporting btw.

Element on my website:
11

Exported Image:
pretty-ko

@wsl0520
Copy link

wsl0520 commented Jun 1, 2023

@stevdza-san
我按照下面的方式可以正确导出渐变色,你可以试下,希望对你有用

image

渐变色的样式写在内层元素gradientContent身上,即不要直接写在ID元素上

@Nderim1
Copy link

Nderim1 commented Jul 10, 2023

Hi @wsl0520, that did not work for me. Created an inner element with the gradient styles and still the exported image is in a solid color. Do you have any other ideas on how to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants