| 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 = process.argv[2] || 'http://127.0.0.1:8899/';
const out = process.argv[3] || '/tmp/smi-shot/home.png';
const width = parseInt(process.argv[4] || '1440', 10);
const browser = await puppeteer.launch({
headless: 'new',
args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-dev-shm-usage', '--font-render-hinting=none'],
});
const page = await browser.newPage();
await page.setViewport({ width, height: 1000, deviceScaleFactor: 1 });
await page.goto(url, { waitUntil: 'networkidle0', timeout: 60000 });
// Warten auf Fonts.
await page.evaluate(async () => { if (document.fonts && document.fonts.ready) await document.fonts.ready; });
await new Promise(r => setTimeout(r, 400));
await page.screenshot({ path: out, fullPage: true });
await browser.close();
console.log('Screenshot gespeichert:', out);
})().catch(e => { console.error('SHOT_ERROR', e.message); process.exit(1); });