don't delay capture

This commit is contained in:
keyan 2021-07-08 10:14:31 -05:00
parent f8f099b9a5
commit eab1c69c7d
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import path from 'path'
export default async function handler (req, res) {
const url = process.env.SELF_URL + '/' + path.join(...(req.query.path || []))
res.setHeader('Content-Type', 'image/png')
const streams = await new Pageres({ crop: true, delay: 1 })
const streams = await new Pageres({ crop: true })
.src(url, ['600x300'])
.run()
res.status(200).end(streams[0])