Skip to content

Latest commit

 

History

History
42 lines (36 loc) · 1.79 KB

Report.md

File metadata and controls

42 lines (36 loc) · 1.79 KB

IMAGE EDITOR PROJECT REPORT

 

❗ This is not the Documentation for this project. Documnetation can be found here at README.md

This project was a very Fun and Exciting experience for me. Even though i am new to JAVA, I have to admit it is very powerful yet easy to understand.

This project helped me to gain real world knowledge about Images, their representation and much more about 2D Arrays Manipulation.

 

Problems Faced, Solutions & Notes

1. Image File Extensions

  • Problem: Different File Formats can be given as input but for Output need to specify File Format in ImageIO.write(RenderedImage im, String formatName, File output )

  • Solution: Used String functions to get Substring after last occuring "." and used it to pass formatName parameter to ImageIO.write().

System.out.print("Enter the path of image file: ");
String ImagePath = sc.nextLine();
String FileExtension = ImagePath.substring(ImagePath.lastIndexOf(".") + 1);
  • Note: This solution is effective and works well to read and write Images in the same Format.

General Points

  • Almost All Image Operation methods have (Height*Width) Iterations.
  • GUI implimentation Failed - Faced Issue in Dyanmically resizing all Components and Image relatively in Window.

Learnings

  • Image Formats and their general representation.
  • 2D Array Manipulation
  • Documentation writing.
  • Markdown Syntax

Final Outcome: Working Terminal based Image Editor with multiple Operations.

Future Works(if any)- Add Extra Operations (Gaussian blur, Extra Filters) + GUI Implementation.