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

imgkit Fails to Render Dynamic Color Changes Set by JavaScript during HTML to Image Conversion #93

Open
he-kishor opened this issue Sep 30, 2024 · 2 comments
Assignees
Labels

Comments

@he-kishor
Copy link

Bug
I am using imgkit to convert HTML to an image, and my HTML contains dynamic elements where the color is set using JavaScript based on certain values. However, when I convert the HTML to an image, the color changes applied through JavaScript are not being reflected in the output image.

The issue seems to be that imgkit is not processing JavaScript before rendering the HTML to an image. This is causing any dynamic styling or content adjustments made via JavaScript to be omitted from the final image.
A clear and concise description of what the bug is.

To Reproduce

  1. Use imgkit to convert HTML that contains JavaScript, where the color or other style attributes are modified dynamically based on a value.
  2. Attempt to convert the HTML to an image using imgkit.

Expected behavior
The image should reflect the dynamic color or style changes applied by JavaScript in the HTML.

** Actual Behavior**
The image does not render the dynamic color changes set by JavaScript, and only the static HTML styles are applied.

  • OS: Window 12
  • IMGkit Version 1.2.3
  • python version 12.2
@MacileHan
Copy link

Me too,I have a bug just like you.

@MacileHan
Copy link

I think the key to the problem is wkhtmltoimage.

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

No branches or pull requests

3 participants