Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.
/ image-filters Public archive

Command-line Java program to apply basic transformations to images

License

Notifications You must be signed in to change notification settings

gbaudic/image-filters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image-filters

A command-line Java program to apply filters to images, developed as part of a course I was teaching in year 2013-2014. The aim of the program for me was mainly to generate test files so the students could have some material to validate their work.

Usage

Main input_file input_file_type output_file output_file_type filter1 filter2 ...
At least one filter had to be specified, as its number (see below). Supported file types were PNG, JPEG and a custom-made, text-based format called ESI (Ensica Simple Image).

ESI format description

On the first line: width height
The height next lines contain space-separated values for the red, green and blue components of each of the width pixels, in this order. Value range is 0-255.

Build

Maven is used to build the project. In the imageFilters directory, type
mvn compile

Available filters

Only three of these were required to pass the course, but I did more for fun.

  1. Identity, used for simple format conversions
  2. Grayscale (required)
  3. Blur (required)
  4. Color inverter (required)
  5. Sepia
  6. XFlip (mirror along horizontal line)
  7. YFlip (mirror along vertical line)

License

GPLv3, see the LICENSE file for more details

About

Command-line Java program to apply basic transformations to images

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages