Skip to content

Commit

Permalink
Update html-to-img.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mmilunicmobile authored Jan 10, 2025
1 parent 283cb0f commit a5610a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion stats_tracker/html-to-img.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import imgkit

with open('loc.svg') as f:
imgkit.from_file(f, 'build/loc.png')
options = {
"enable-local-file-access": ""
}
imgkit.from_file(f, 'build/loc.png', options)

0 comments on commit a5610a8

Please sign in to comment.