belun.app Blog
RU

Belun Image Saver

A browser extension for Chrome; the Edge, Firefox and Opera versions will follow. Right-click a picture on a web page, open the Belun Image Saver submenu and choose what to save: the picture as JPG, PNG or WebP, a smaller file, or a copy without EXIF. The browser converts it on your computer and puts the file in your downloads folder.

Coming soon: Edge, Firefox and Opera

Version 1.0.0. The source code is on GitHub under the MIT licence: belun-app/extensions.

The extension's toolbar popup: a hint to right-click an image on a web page, a button Convert files from your computer, and a link to belun.app.
The toolbar button opens the file page; the commands for pictures on web pages are in the right-click menu.

What it does

The right-click menu of an image gets five commands:

Saved files keep their names: IMG_0042-smaller.jpg, IMG_0042-no-exif.jpg.

The window shown when a picture could not be made smaller: the original is 180 KB, the smallest attempt 187 KB, with buttons Save the original and Close.
When a picture cannot get smaller, the extension says so and offers the original.

Files from your computer

The toolbar button opens the file page in a tab. Drop, paste or choose many files and use the same commands. Several results are saved as one ZIP archive, up to 500 files and 1 GB, built one file at a time. It is a tab rather than the popup because a popup closes as soon as the browser loses focus, and that is what happens when you drag files from the file manager.

The file page with three photos converted to JPG and saved as images-jpg.zip, with the size of each file before and after.
Many files at once: converted to JPG and saved as one ZIP.
The file page after Without EXIF: two files saved in images-no-exif.zip, each only slightly smaller than the original.
Without EXIF: camera, date and GPS data removed without compressing again.

What it never does

The one network request, and when it happens

The only thing the extension may load is the picture you right-clicked, and only in these cases, tried in this order:

  1. A picture embedded in the page as a data: address is decoded in the extension. No request at all.
  2. Otherwise the page hands the picture over. It has already loaded it, so it usually comes from the browser's cache; if a request is made, it is the page's own.
  3. Only if the page cannot hand it over and you have allowed the extension to read pictures from that site does the extension download the picture itself. That request carries no cookies, no referrer and no Origin header.
  4. Otherwise a small window explains why and offers Allow and save (access to that one site, then the save) or Save the original (the browser downloads the file as it is).

Without that permission the extension never requests a picture itself: such a request would tell the site which extension sent it, and in Firefox the address it would come from is unique to your browser profile. If the page's own request fails, the extension reports the network or server error as such.

The window asking for access to one site, images.example.com, with buttons Allow and save, Save the original and Cancel.
Access is asked for one site, and only when that site does not let other sites read its pictures.

To check this yourself, open the extension's inspector on the browser's extensions page and watch the network while you use it: the only requests are for the picture you right-clicked. Disconnected from the internet, the file page converts files as before. The README on GitHub describes how to verify that nothing leaves your computer, including the automated test that records every request.

Permissions in plain words

contextMenus
Adds the commands to the right-click menu of images.
activeTab
After you pick a command, lets the extension read the page you right-clicked. That tab only, and only after the click.
scripting
Runs one short function in that page, which hands over the picture the page has already loaded, so it does not have to be downloaded again.
downloads
Saves the finished file to your downloads folder under a readable name.
offscreen (Chrome, Edge and Opera)
A hidden extension page holds the finished file while it downloads, because the background service worker of these browsers cannot make a link to a file in memory. It loads nothing from the network.
Access to a site (optional)
Asked for one site at a time, only when that site does not let other sites read its pictures and you press Allow and save. You can remove it later on the browser's page for the extension.

In Firefox the extension declares that it collects no data (data_collection_permissions: none).

Limits

The same jobs on belun.app

For files that are already on your computer, these pages do the same work in the browser with more settings, and nothing has to be installed:

Source code and privacy

The code is bundled but not minified, so the package reads like the source. The EXIF remover and the HEIC reader come from @belun-app/tool-engines, the same open-source library the tools on this site use. What the extension does with your data is described in its privacy policy. Questions and bug reports: [email protected].

Chrome is a trademark of Google LLC.