Skip to content

Image Editor CUI is a Java command-line tool for performing various image processing operations, including grayscale conversion, rotation, brightness adjustment, blurring, contrast and saturation modification, negative image creation, filter application, and edge detection on JPEG images.

Notifications You must be signed in to change notification settings

garvit420/ImageEditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Image Editor CUI

Image Editor CUI is a simple command-line program that allows you to perform various image processing operations on images in the JPEG format.

Features

  • Grayscale Conversion: Convert a color image to grayscale.

  • Rotate: Rotate an image 90 degrees clockwise or anticlockwise.

  • Invert: Flip an image horizontally or vertically.

  • Brightness Adjustment: Change the brightness of an image by a given percentage.

  • Pixel Blurring: Apply pixel-level blurring to an image.

  • Smooth Blurring: Apply smooth blurring to an image.

  • Contrast Adjustment: Change the contrast of an image by a given percentage.

  • Saturation Adjustment: Change the saturation of an image by a given percentage.

  • Negative Image: Create the negative of an image.

  • Filter Application: Apply filters (Red, Blue, Green) to an image.

  • Edge Detection: Detect edges in an image.

Usage

  1. Clone the repository:

    git clone https://github.com/garvit420/ImageEditor.git
  2. Compile the program:

    javac imageEditorCui.java
  3. Run the program:

    java imageEditorCui
  4. Follow the on-screen prompts to select the operation you want to perform and provide the required inputs.

  5. The modified image will be saved as a new file.

Requirements

  • Java Development Kit (JDK)
  • Input image in JPEG format

Examples

  • Grayscale Conversion:

    Select 1 for grayscaling the image.
  • Rotate Image:

    Select 2 to rotate 90 degrees clockwise.
    Select 3 to rotate 90 degrees anticlockwise.
  • Change Brightness:

    Provide the percentage by which you want to change brightness.
  • Pixel Blurring and Smooth Blurring:

    Provide the number of pixels for blurring.
  • Change Contrast and Saturation:

    Provide the percentage by which you want to change contrast or saturation.
  • Create Negative Image:

    Select 11 to create the negative of the image.
  • Apply Filters:

    Select 12 and choose the filter (1 for Red, 2 for Blue, 3 for Green).
  • Edge Detection:

    Select 13 to perform edge detection on the image.

Author

License

This project is open-source and available under the MIT License.

About

Image Editor CUI is a Java command-line tool for performing various image processing operations, including grayscale conversion, rotation, brightness adjustment, blurring, contrast and saturation modification, negative image creation, filter application, and edge detection on JPEG images.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages