Compare commits

...

1 Commits
v1 ... master

Author SHA1 Message Date
Kar e8d057a024 WW webgl and canvas 2025-03-14 02:17:36 +05:30
2 changed files with 9 additions and 6 deletions

BIN
1741898746177.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

View File

@ -37,13 +37,16 @@ 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: false,
headless: 'new', // Use the newer headless mode
args: [
'--disable-blink-features=AutomationControlled',
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-infobars',
'--disable-dev-shm-usage'
'--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'
]
}
);