Show HN: Video2WebP – convert videos to animated WebP in the browser
video2webp.mattj.io
video2webp.mattj.io
It would be cool if there were a special browser badge for a website that ensured uploaded content couldn't be transmitted to the server.
Something in the spirit of `Content-Security-Policy: connect-src 'none';` (not sure if that covers all edge cases though, I'm not super familiar with CSP)
maybe an html meta tag that blocks all XMLHTTPRequests until the user consents. i don't think it would even matter if it was browser-specific
Of course that being said the policy would basically have to be "disable network" at a trigger point not just uploads as you can just as easily leak large amounts of data via triggering GETs by making img placeholders come into view or other equally tricky things that can't be distinguished from "app is just still loading".
For example...
1. Cross origin hyperlinks would have to be completely disabled 2. Same-origin URLs would need all url information (query params, path, etc) to remain completely client-side. The only thing transmitted to the server would be the base domain.
It's interesting to think about, at least.
Surely, though, a blocked network request never reaches the server and so it can't be used a 'flag'?
But when you think about it, we're asking a tool originally designed to browse documents on the web, to now execute what is essentially a (safe) binary application, and not to let it connect to the internet, while inside a document in a web browser.
I can't see how the future of the desktop is not going to be radically shaped by WASM, in whatever form that takes.
Maybe it could add the CSP at some point after everything is loaded and then the badge appears? Of course you still want updates, how do you ensure that updates can occur without sneaking out information? Wiping all site data before downloading the new version would work but having local persistent data would be useful. Maybe all local data would be unavailable from the start of the new version fetch to until the no-network policy is applied?
In the future https://www.w3.org/TR/webcodecs/ may allow for a native API to do this.
It may make some things this can do possible but ffmpeg has support for so many codecs and so many operations and is incredibly extensible that I doubt anything short of making ffmpeg available in the browser will give you that much power.
Does anybody know a site where one can create "zoom in animations"?
I mean you upload an image, select the point where the animation should zoom in and get a "fly into the image" animation.
[1] https://stackoverflow.com/questions/54547061/ffmpeg-animatio...
I didn't realize that WebP supported animation. Wasn't that the purpose of WebM?
WebP [1] is based upon VP8 encoding. VP8 is one of the codecs for which WebM is frequently a container. Ultimately, it's similar but achieves different objectives.