Re:Forking Chrome to turn HTML into SVG
by yvoschaap on Sunday November 13, 2022 @02:51PM
(#33586658)
I tried something similar like this to render thumbnail of websites (at a very small file-size). E.g. https://twitter.com/yvoschaap/status/1446397003316047872
[ Parent
| on HN ]
Re:Forking Chrome to turn HTML into SVG
by marginalia_nu on Sunday November 13, 2022 @03:41PM
(#33587114)
How small are you getting them? I'm straight up screenshotting websites (e.g. https://search.marginalia.nu/screenshot/245804). Seem to come in at on average 17 Kb, based on a sample size of 550K screenshots.
That's pretty cool! How do you go about removing the details? Is it done in JavaScript before the screenshot is taken, or by post-processing the SVG?
Re:Forking Chrome to turn HTML into SVG
by mrkramer on Sunday November 13, 2022 @03:12PM
(#33586833)
Isn't this something like archive.ph is doing? Snapshotting and screenshotting websites. I'm referring both to you and the op.
Re:Forking Chrome to turn HTML into SVG
by dj_gitmo on Sunday November 13, 2022 @03:30PM
(#33587019)
https://archive.ph/1NNZr
That looks like a Web Archive (WARC) and a PNG screen shot. I think you can make a screenshot with CasperJS. The WARC can be created by wget.
Re:Forking Chrome to turn HTML into SVG
by mrkramer on Sunday November 13, 2022 @04:02PM
(#33587315)
Yea you are right about PNG but wrong about WARC. Archive.ph doesn't use WARC.
Re:Forking Chrome to turn HTML into SVG
by dredmorbius on Sunday November 13, 2022 @05:01PM
(#33587836)
What does it use, if you know?
Source?
Re:Forking Chrome to turn HTML into SVG
by mrkramer on Sunday November 13, 2022 @05:22PM
(#33588011)
Their FAQ says:
https://archive.ph/faq#:~:text=Which%20parts%20of,of%201024x....
Wikipedia says: https://en.wikipedia.org/wiki/Archive.today#:~:text=Web%20pa....
So I assumed they doesn't use it but idk for sure.
Re:Forking Chrome to turn HTML into SVG
by dredmorbius on Tuesday November 15, 2022 @02:39PM
(#33613925)
Thanks.
Re:Forking Chrome to turn HTML into SVG
by codetrotter on Sunday November 13, 2022 @02:54PM
(#33586679)
That is super neat! Did you end up having any users/customers?