Show HN: Chromda – Serverless Website Screenshots
github.com
github.com
I would be curious to see how accurate it is when it comes to rendering. I have a Screenshot as a Service side project (https://getscreenshot.rasterwise.com) that is also build with Puppeteer, but accuracy is a completely different animal.
Out of the box Puppeteer is really not that accurate so you need fine tune it to address a huge amount of rendering edge cases.
This is the area where most services come short imo. I have put a lot of effort into optimizing my service accuracy but it’s a never-ending task. There always seems to be one website that doesn’t render the way it’s supposed to be rendered.
I really don’t understand why headless browsers seem to be developed with UI rendering as a low priority. Simulating a viewport is not equal to simulating an actual screen.
I also managed to get a version of the urlbox renderer working on lambda but it fails on some websites due to the /tmp space limits, for example trying to do a full page screenshot of a heavy page like dailymail would use up all of the available disk space in the lambda environment with chrome’s media cache.
S3_ACL "public-read"
It will be great if you can explain why and how is this used in the ReadMe file.
But since this is just an environment setting, you can change it if your use case is different.
[ ......] / extract:aws-sdk: sill extract aws-sdk@2.595.0 extracted to /home/foo/serverless_apps/chromda/node_modules/.staging/...
Any tips or tricks would be much appreciated?
Quickly browsed through the code and I don't think it supports local pages but might throw a PR your way to add support if you don't mind. Thanks!