Skip to content

A powerful Chrome extension that lets you instantly convert and save images in different formats (JPG, PNG, WebP) with advanced optimization options. Features include quality control, metadata handling, dimension adjustments, and smart defaults - all processed locally in your browser

License

Notifications You must be signed in to change notification settings

saoud30/save-image-as-type

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ–ΌοΈ Save Image As Type

A powerful Chrome extension that revolutionizes how you save and convert images on the web

screenshot

License: MIT Chrome Web Store Chrome Web Store Users

πŸ“– Table of Contents

✨ Features

🎯 Core Functionality

  • Instant Format Conversion
    • Convert to JPG/JPEG with adjustable quality
    • Save as PNG with lossless compression
    • Transform to WebP for optimal web performance

πŸ› οΈ Advanced Options

  • Quality Control

    • Adjustable compression (1-100%)
    • Smart quality presets for different image types
    • Preview quality changes in real-time
  • Image Optimization

    • Intelligent compression algorithms
    • Metadata stripping capability
    • Color palette optimization for PNGs
    • Smart transparency handling
  • Dimension Control

    • Custom resize options
    • Maintain aspect ratio toggle
    • Preset common dimensions
    • Batch processing capabilities

πŸ’« User Experience

  • Intuitive Interface

    • Clean, modern popup design
    • Easy-to-use context menu
    • Keyboard shortcuts support
    • Progress indicators for large files
  • Smart Defaults

    • Remember last used settings
    • Format-specific preferences
    • Custom naming patterns
    • Quick reset options

πŸš€ Installation

From Source

  1. Clone this repository
  2. Open Chrome and navigate to chrome://extensions
  3. Enable "Developer mode"
  4. Click "Load unpacked"
  5. Select the extension directory

🎯 Usage Guide

Basic Usage

  1. Right-click any image on the web
  2. Hover over "Save Image As Type"
  3. Select your desired format:
    • JPG: Best for photographs and complex images
    • PNG: Ideal for screenshots and images with transparency
    • WebP: Perfect for web optimization

Format Selection Guide

Format Best For Quality Range File Size
JPG Photos, Complex Images 60-90% Smaller
PNG Screenshots, Graphics Lossless Larger
WebP Web Images 75-90% Smallest

Keyboard Shortcuts

  • Alt + S: Open settings popup
  • Alt + J: Quick save as JPG
  • Alt + P: Quick save as PNG
  • Alt + W: Quick save as WebP

βš™οΈ Advanced Settings

Quality Settings

  • JPG/WebP Quality: Adjust compression level (1-100%)
  • PNG Optimization: Color palette optimization
  • Metadata Options: Strip or preserve image metadata

Dimension Control

  • Custom Width/Height: Set specific dimensions
  • Aspect Ratio Lock: Maintain proportions
  • Preset Sizes: Common dimensions for social media

File Management

  • Naming Pattern: Customize output filenames
  • Save Location: Choose default download directory
  • Conflict Resolution: Auto-rename or replace

πŸ’» Development

Prerequisites

- Node.js (v14 or higher)
- Chrome Browser
- Git

Setup Development Environment

  1. Clone the repository:
git clone https://github.com/Saoud30/save-image-as-type.git
cd save-image-as-type
  1. Install dependencies:
npm install
  1. Build the extension:
npm run build
  1. Load in Chrome:
  • Open chrome://extensions
  • Enable "Developer mode"
  • Click "Load unpacked"
  • Select the dist folder

Project Structure

save-image-as-type/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ background/
β”‚   β”œβ”€β”€ popup/
β”‚   └── utils/
β”œβ”€β”€ public/
β”‚   └── icons/
β”œβ”€β”€ dist/
└── tests/

🀝 Contributing

We welcome contributions! Here's how you can help:

  1. Fork the repository
  2. Create your feature branch:
git checkout -b feature/AmazingFeature
  1. Commit your changes:
git commit -m 'Add some AmazingFeature'
  1. Push to the branch:
git push origin feature/AmazingFeature
  1. Open a Pull Request

πŸ› οΈ Technical Details

Architecture

  • Built with modern Chrome Extension Manifest V3
  • Uses Canvas API for image processing
  • Implements Web Workers for performance
  • Leverages Chrome Storage API for settings

Performance Optimizations

  • Lazy loading of conversion modules
  • Efficient memory management
  • Background processing for large files
  • Caching of frequently used settings

❓ Frequently Asked Questions

General Questions

Q: Why choose this over browser's default save? A: Our extension offers format conversion, optimization, and quality control in one click.

Q: Does it work offline? A: Yes, all processing is done locally in your browser.

Technical Questions

Q: What's the maximum file size? A: Chrome's limitations apply (typically around 500MB).

Q: Does it preserve EXIF data? A: Optional - you can choose to strip or preserve metadata.

πŸ”’ Privacy Policy

  • No data collection
  • All processing done locally
  • No external server communication
  • No analytics or tracking

πŸ“ License

MIT Β© [Shazy]


Made with ❀️ for the web

Report Bug Β· Request Feature

About

A powerful Chrome extension that lets you instantly convert and save images in different formats (JPG, PNG, WebP) with advanced optimization options. Features include quality control, metadata handling, dimension adjustments, and smart defaults - all processed locally in your browser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published