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

js code not working #133

Open
hyer opened this issue Oct 30, 2023 · 1 comment
Open

js code not working #133

hyer opened this issue Oct 30, 2023 · 1 comment

Comments

@hyer
Copy link

hyer commented Oct 30, 2023

I try to change the font size in a div with js code in the <script>.

<!DOCTYPE html>
<html>

<head>
    <title></title>
    <script src="tmp/jquery.min.js"></script>
    <script defer type="text/javascript">
    // code to change the font size, which is woking when open with chrome browser in desktop environment.
    </script>
</head>

<body style="background-image: url('bg.png'); background-repeat:no-repeat;">

    <body style="width: 1125px; height: 352px;"></body>
    <div style="left: 210px; top: 234px; width: 117px; height: 30px; position: absolute; color: rgb(0, 255, 255, 255);">
        CCC</div>
</body>

</html>

the text is render with Html2image, however, the font size was'n't change by the js code. I think the js code was not executed.
I would like to know how to solve this problem?

ENV:

  • Ubuntu server without desktop
  • html2image==2.0.4.3
  • Python 3.8.13
@hex406
Copy link

hex406 commented Aug 9, 2024

Facing same issue. Did you happen to find any workaround @hyer ?

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

2 participants