Skip to content

Focused element only appearing in image & toJpeg always create blank image (toPng Svg works) #488

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

Open
tathastu871 opened this issue Apr 18, 2025 · 3 comments

Comments

@tathastu871
Copy link

I am turning body tag or any parent tag for desired elemnet into image

Problem is when certain elemnt like textarea/input is focused

Image blank out other element only focused element visible

Now bug is

  1. When downlaoded image i go to browser downloads menu and open it in browser as image then it displys all element but with greyed background while focused element

Screenshot_2025-04-18_215239.jpg

  1. Same above image when i got to system file explorer and open in gallery it appears every other element are blank only focused elemmet present

Screenshot_2025-04-18_220116.jpg

**Above images created by passing element body tag or div wrapped in another div to mitigate margin related cropping issues

  1. This time i created image without wrappinf for body tag and image is blank completely
    true (1).png
@forever0714yuan
Copy link

forever0714yuan commented Apr 18, 2025 via email

@tathastu871
Copy link
Author

tathastu871 commented Apr 19, 2025

i tried downloding image by setting dataurl to anchor
also tried by converting to blob and objecturl set to anchor
but downlaoded png is blank
browser downlaod renderes png maybe because its in memoey

@tathastu871 tathastu871 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 19, 2025
@tathastu871 tathastu871 reopened this Apr 19, 2025
@tathastu871
Copy link
Author

i tried downloding image by setting dataurl to anchor
also tried by converting to blob and objecturl set to anchor
but downlaoded png is blank
browser downlaod renderes png maybe because its in memory

it was transparency related issue maybe

i tried imagemagick on downlaoded png and remove alpha channel and set white bg

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