A Java implementation of Seam Carving, which is an algorithm for content aware image resizing.
Take the src folder and place it in a directory where the image you want to resize is. Then open up the console/terminal navigate to the folder then compile the .java files:
javac -d out src/com/ferhat/SeamCarving.java
This will create a folder called out which will keep the compiled .class files. Then to run the program run this command:
java -cp ./out SeamCarving [input image] [width %] [height %]
For example the following command will take the file "input.jpg" carve it down to 500x500 (1000x1000 the original size) and save it to "input_picture_resized_500x500'50% 50%'.jpg":
java -cp ./out SeamCarving input.jpg 50 50


