Skip to content

A simple Express app to upload, optimize, and convert images to WebP format using lossy compression, with file size reduction and base64 encoding support.

License

Notifications You must be signed in to change notification settings

NeaByteLab/Image-Optimizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Image Optimizer ๐Ÿ“ธ

This is a simple Express application for uploading and optimizing images. The images are converted to the WebP format, and their sizes are minimized using lossy compression with the help of the Sharp library.

Gemini Assistant Preview


โš™๏ธ Features

  • ๐Ÿ–ผ๏ธ Upload Images: Allows users to upload up to 9 images at a time.
  • โšก Optimize Images: Converts uploaded images to the WebP format using Sharp.
  • ๐Ÿ“Š File Size Reduction: Shows the original and minified sizes of the images along with the percentage of size saved.
  • ๐Ÿ”„ Base64 Encoding: Generates a data URL for each image to easily embed the image in HTML.

๐Ÿ› ๏ธ Technologies Used

  • Express: Web framework for Node.js
  • Multer: Middleware for handling file uploads
  • Sharp: High-performance image processing library
  • EJS: Templating engine for rendering HTML views

๐Ÿš€ Installation

  1. Clone the repository:

    git clone https://github.com/NeaByteLab/Image-Optimizer.git
    cd Image-Optimizer
  2. Install dependencies:

    npm install
  3. Start the server:

    npm start
  4. Access the app at http://localhost:3000


๐Ÿ“ฆ How to Use

  • Upload Images: Use the file input on the homepage to select images.
  • Optimization: After uploading, the images will be automatically optimized and displayed with their original size and minified size.
  • Download: The optimized images will be available in a base64-encoded format for easy embedding.

๐Ÿ“ License

MIT License ยฉ 2025 NeaByteLab

About

A simple Express app to upload, optimize, and convert images to WebP format using lossy compression, with file size reduction and base64 encoding support.

Topics

Resources

License

Stars

Watchers

Forks