Turning Your Phone’s Share Sheet Into an Image Editor
Michael Scharnagl has put together a handy demo that lets you convert a photo to grayscale right from your mobile device. The trick? He relies on the Web Share Target API to make it happen.
Under the hood, the workflow is straightforward. A Service Worker catches the incoming data, then the code uses drawImage to render the picture onto a canvas. A simple grayscale filter does the rest, and the final edited image is served back to you.
Essentially, you install the microsite as a PWA, then use your phone’s native "share" option to send an image over. It returns the processed result. For now, this only works on Android with Chrome, though.
It’s a clever inversion of the "Browser Functions" concept—where a server mimics browser behavior. Here, the browser takes on a job typically reserved for server-side processing, all without leaving the client.



