Skip to content

πŸš€ ExpandImageWide – A CLI tool that corrects EXIF orientation and expands images to 16:9

License

Notifications You must be signed in to change notification settings

xPathin/expand-image-wide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ExpandImageWide

ExpandImageWide is a simple command-line tool that automatically adjusts images to a 16:9 widescreen aspect ratio by expanding the background with a blurred edge fill. It also corrects EXIF orientation to ensure images appear as intended.

Features

  • βœ… Automatic EXIF orientation correction (fixes rotated images).
  • βœ… Expands images to 16:9 without cropping.
  • βœ… Blurs the extended background to blend seamlessly.
  • βœ… Command-line interface for quick and easy processing.

How It Works

  1. Drag and drop an image file onto the console and press Enter.
  2. The tool corrects image rotation (if needed).
  3. It expands the image to 16:9 by filling the extra space with a blurred background.
  4. The processed image is saved with a `` suffix.

Installation

Prerequisites

  • .NET 8.0 or later

Clone & Build

git clone https://github.com/yourusername/ExpandImageWide.git
cd ExpandImageWide

Then build and run:

dotnet build
cd bin/Debug/net8.0
ExpandImageWide.exe

Usage

Simply drag and drop an image into the console and press Enter.

Drag and drop image files onto this window and press Enter to process them.
Type 'exit' and press Enter to close the program.

Example:

ExpandImageWide.exe path/to/image.jpg

The processed image will be saved as:

path/to/image.processed.jpg

Supported Image Formats

  • JPEG (.jpg, .jpeg)
  • PNG (.png)
  • BMP (.bmp)
  • GIF (.gif)
  • TIFF (.tiff)

How It Adjusts Images

  1. Fixes Rotation
    • Reads EXIF orientation metadata and applies necessary flips/rotations.
  2. Resizes to 16:9
    • Maintains original image height.
    • Expands width to fit 16:9 aspect ratio.
  3. Fills Extra Space
    • Copies edge pixels to create a seamless extension.
    • Applies Gaussian blur to the extended background.
  4. Centers the Image
    • The original image is positioned in the center of the new 16:9 frame.

License

MIT License. See LICENSE for details.

About

πŸš€ ExpandImageWide – A CLI tool that corrects EXIF orientation and expands images to 16:9

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages