Spaces:
Runtime error
Runtime error
Remove ImgKit parsing.
Browse files
app.py
CHANGED
|
@@ -254,8 +254,6 @@ def html_to_png(card_name, html):
|
|
| 254 |
'./css/mtg_custom.css']
|
| 255 |
imgkit.from_string(html, path, {"xvfb": "", "enable-local-file-access": ""}, css=css)
|
| 256 |
except Exception as e:
|
| 257 |
-
print("ImgKit Error:")
|
| 258 |
-
print(e)
|
| 259 |
try:
|
| 260 |
# For Windows local, requires 'html2image' package from pip.
|
| 261 |
from html2image import Html2Image
|
|
|
|
| 254 |
'./css/mtg_custom.css']
|
| 255 |
imgkit.from_string(html, path, {"xvfb": "", "enable-local-file-access": ""}, css=css)
|
| 256 |
except Exception as e:
|
|
|
|
|
|
|
| 257 |
try:
|
| 258 |
# For Windows local, requires 'html2image' package from pip.
|
| 259 |
from html2image import Html2Image
|