Giter Club home page Giter Club logo

car's Introduction

CAR

Content-Aware Resizing (CAR) - is a cross-platform bilingual (C#/Java) implementation of the Seam carving algorithm.

The Content-Aware Resizing algorithm allows resizing images (jpeg, png and others) while preserving the significant parts of the image and maintaining their proportions.

The project consists of several sub-projects, each targeted to a specific environment.

Paint.NET plugin

The latest binaries (dll file) can be downloaded from http://github.com/OlegZhukov/CAR/releases/download/v2.0/CAR.Paint.NET.zip.

Usage

Just copy the CAR.Paint.NET.dll library to the Effects folder in the Paint.NET directory (usually C:\Program Files\paint.net\).

Compiling from sources

The corresponding VS project is located in the *CS\CAR.Paint.NET* directory. Before compiling it reroute (if needed) the project references pointing to Paint.NET dll's.

Command line tool (Windows/cross-platform, .NET 4.0/Mono 2.8 or higher)

The latest binaries can be downloaded from http://github.com/OlegZhukov/CAR/releases/download/v1.5/CAR.Win.zip.

Usage

To resize Image.png to 50% of its current width, type:

CAR.exe Image.png --width=50%

To see the usage prompt, just run CAR.exe without arguments.

Compiling from sources

Compiling CAR.exe from sources is as easy as opening CS/CAR.sln solution in Visual Studio and running the compilation.

However, in order to compile and run tests (CAR.Test project) the NuGet plug-in for Visual Studio is required. Once installed, it will automatically resolve dependencies and download necessary assemblies. You will also need to configure your favorite test runner to run the NUnit tests found in CAR.Test.dll.

Compiling in MonoDevelop

Again, compiling CAR.exe is fairly straightforward in MonoDevelop just like in Visual Studio.

Precompiled version of CAR.exe for Linux (Ubuntu) is available at http://github.com/OlegZhukov/CAR/releases/download/v1.5/CAR.Mono.Linux.zip.

As for the tests (CAR.Test project), MonoDevelop will need to locate the NUnit and SpecFlow assemblies. Therefore you might need to add the corresponding .pc files to your /usr/lib/pkgconfig/ directory.

Command line tool (Cross-platform, Java 8 or higher)

The latest binaries (class files and necessary jar libraries) can be downloaded from http://github.com/OlegZhukov/CAR/releases/download/v1.5/CAR.Java.class.zip.

Usage

To resize Image.png to 50% of its current width, navigate to the directory where you extracted the downloaded zip file and type (in Windows):

java -cp "./;./lib/stdlib-package.jar" com.OlegZhukov.CAR.CAR Image.png --width=50%

To see the usage prompt, just omit the arguments afer "CAR":

java -cp "./;./lib/stdlib-package.jar" com.OlegZhukov.CAR.CAR

In Linux use : instead of ;:

java -cp "./:./lib/stdlib-package.jar" com.OlegZhukov.CAR.CAR Image.png --width=50%
java -cp "./:./lib/stdlib-package.jar" com.OlegZhukov.CAR.CAR

Compiling from sources

The simplest way to compile the Java CAR project is to it using the Eclipse IDE. Just open the Eclipse project in Java folder and run the compilation.

car's People

Contributors

olegzhukov avatar

Stargazers

Malus avatar Linus avatar Jesse Talavera avatar Denis avatar Yury Korchemkin avatar James Edward Lewis II avatar

Watchers

 avatar

Forkers

templeblock

car's Issues

Not showing up in the latest Paint.NET

I am either blind or I just can't see where to do the effect at in in version 4.0.10
I looked and looked :c
I am not getting any plugin errors in the Plugin Errors section of the settings window

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.