Skip to content

Commit

Permalink
use --headless=old for chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
John Lyu committed Oct 8, 2024
1 parent 18a693c commit 951e99c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dataframe_image/_browser_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def get_launch_args():
# temp_dir = TemporaryDirectory()
temp_dir_name = os.path.abspath(".")
args = [
"--headless",
"--headless=old",
"--enable-logging",
"--disable-gpu",
"--run-all-compositor-stages-before-draw",
Expand Down
2 changes: 1 addition & 1 deletion dataframe_image/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.5.dev1+g527edaf.d20240913"
__version__ = "0.2.5.dev8+g18a693c.d20241008"
2 changes: 1 addition & 1 deletion dataframe_image/converter/browser/chrome_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def screenshot(self, html, ss_width=1400, ss_height=900) -> Image:
args = [
"--enable-logging",
"--disable-gpu",
"--headless",
"--headless=old",
# "--no-sandbox",
f"--crash-dumps-dir={temp_dir}",
f"--force-device-scale-factor={self.device_scale_factor}",
Expand Down
2 changes: 1 addition & 1 deletion dataframe_image/converter/browser/selenium_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def screenshot(self, html: str) -> Image:
from selenium.webdriver.firefox.service import Service

options = selenium.webdriver.FirefoxOptions()
options.add_argument("--headless")
options.add_argument("--headless=old")

profile = selenium.webdriver.FirefoxProfile(temp_dir)
profile.set_preference(
Expand Down

0 comments on commit 951e99c

Please sign in to comment.