my ubuntu machine has pagers for taking screenshots, it is working when I run manually
root@bobby:~# pageres https://example.com 480x320 --format=jpg --filename 'page' --overwrite
But, when I enable cron entry it is not working and throwing MTA error, probably due to the output enabled.
* * * * * su bobby "/usr/bin/pageres https://example.com 480x320 --format=jpg --filename 'page' --overwrite" >> log.log
* * * * * su bobby "pageres https://example.com" >> log.log
both commands are not working.