2 is also not applicable because it's about compress payload "from server to client", not reverse. Using the Keybase command line app. as jpg, as I can then use the jpg quality attribute to reduce the size drastically . To achieve client-side resizing of images, use the