Skip to content

save to browser #72

Closed Answered by vgalin
Nikita-Kechaev asked this question in Q&A
Aug 20, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hello, I'm not familiar with Django, but from what I've understand, you would like to send directly the image to the client without it being saved on the server.

Currently, this is not possible, as the screenshots are generated as-is by Chrome/Chromium Headless. I would recommend you to :

  1. Screenshot;
  2. Send the image to the client;
  3. Delete the screenshot on the server.

That's probably the best you can do right now...

In future versions of Html2Image, you'll also have the possibility to take screenshots "differently" (Chrome Headless + Chrome Devtools Protocol), and retrieving only the base-64 encoded image without it being saved on the server could be possible ... But I have no Estimated T…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Nikita-Kechaev
Comment options

Answer selected by vgalin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants