Compare commits

..

No commits in common. "master" and "v1" have entirely different histories.
master ... v1

2 changed files with 6 additions and 9 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

View File

@ -37,16 +37,13 @@ const filename = argv.n || `${Date.now()}.jpg`;
{
// executablePath: '/usr/bin/google-chrome-stable', // Use real Chrome if available -stable for ARCH derivative like Garuda linux (my os)
// executablePath: '/usr/bin/firefox', // Adjust based on `which firefox`
headless: 'new', // Use the newer headless mode
headless: false,
args: [
'--use-gl=swiftshader', // Enables WebGL rendering
'--enable-webgl', // Ensures WebGL is enabled
'--ignore-gpu-blocklist', // Prevents GPU restrictions
'--disable-software-rasterizer', // Helps with WebGL rendering
'--disable-gpu', // Ensures it runs properly in headless mode
'--disable-dev-shm-usage', // Prevents crashes in Docker/Linux
'--no-sandbox', // Helps in some environments
'--disable-setuid-sandbox'
'--disable-blink-features=AutomationControlled',
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-infobars',
'--disable-dev-shm-usage'
]
}
);