Skip to content

Save Image as Type is an chrome extension which add Save as PNG / JPG / WebP to the context menu of image.

License

Notifications You must be signed in to change notification settings

CorruptBandit/Save-Image-as-Type

 
 

Repository files navigation

Save-Image-as-Type

This is a Chromium extension that adds options to save images as PNG or JPG directly from the context menu.

Overview

This project is a stripped-down fork of the original Save-Image-as-Type extension. The primary goal of this fork is to enhance privacy and user security by minimizing the permissions required and streamlining the functionality.

Key Features

  • Adds "Save Image as PNG" or "Save Image as JPG" options to the context menu for images.
  • Supports direct saving of images with minimal user interaction.

Changes Made

  • Optional Host Permissions: The extension uses optional host permissions, allowing users to grant access only when needed. By default, the extension will request permissions on a per-click basis, meaning it will have access the sites required for downloading the image. Note if the image is cross-site it will need permissions for each site in the chain.

  • Minimal Permissions: This fork opts to use only the "scripting" and "contextMenus" permissions. This means that the extension only has access to the current tab when the user interacts with it, ensuring a more secure experience.

  • Removal of Offscreen Functionality: The offscreen document functionality has been removed due to piracy concerns. The previous implementation, which allowed for processing images in an offscreen context, could potentially expose users to unwanted risks. By eliminating this feature, the extension focuses solely on the core functionality of saving images with increased security.

Permissions Management

When you install this extension, it will request permissions on a per-click basis. This means that the extension will only have access to the current site when you actively use it.

If you wish to avoid the per-click permission request, you should consider using the original extension, as this fork privacy focused.

Minimum Chromium Version

This extension has been tested on Chromium version 129.0.6668.70. While this is the minimum version specified, lower versions of Chromium may still work. However, functionality cannot be guaranteed on versions below this threshold.

Installation

  1. Download the ZIP file: Go to the Releases page to download the latest release ZIP file or clone/download the repository as a ZIP.
  2. Enable Developer Mode: Open your Chromium browser and navigate to the extensions page.
  3. Load the Extension:
    • Method 1: Drag and drop the downloaded ZIP file directly into the extensions page.
    • Method 2: Click "Load unpacked" and select the directory where you extracted the ZIP file or where you cloned the repository.

Usage

  1. Right-click on any image on a webpage.
  2. Select "Save Image as PNG" or "Save Image as JPG" from the context menu.
  3. Choose the desired location and save the image.

License

This project is licensed under the GNU General Public License. See the LICENSE file for details.

Acknowledgments

Thanks to Cuixiping for the original work on the Save-Image-as-Type extension, which inspired this project.

About

Save Image as Type is an chrome extension which add Save as PNG / JPG / WebP to the context menu of image.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • JavaScript 99.5%
  • HTML 0.5%