| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /tmp/smi-shot/ |
Upload File : |
const puppeteer=require('puppeteer');
(async()=>{
const [url,out,w,h]=[process.argv[2],process.argv[3],+process.argv[4]||1440,+process.argv[5]||860];
const b=await puppeteer.launch({headless:'new',args:['--no-sandbox','--disable-setuid-sandbox','--disable-dev-shm-usage','--use-gl=swiftshader']});
const p=await b.newPage();
await p.setViewport({width:w,height:h,deviceScaleFactor:1});
await p.goto(url,{waitUntil:'networkidle0',timeout:60000});
await p.evaluate(async()=>{if(document.fonts&&document.fonts.ready)await document.fonts.ready});
await new Promise(r=>setTimeout(r,4200));
await p.screenshot({path:out});
await b.close(); console.log('shot',out);
})().catch(e=>{console.error('ERR',e.message);process.exit(1)});