expiredpopsicle / kiricrop Goto Github PK
View Code? Open in Web Editor NEWA command line tool to automatically resize and crop an image to its most complex (and hopefully interesting) section.
License: Other
A command line tool to automatically resize and crop an image to its most complex (and hopefully interesting) section.
License: Other
---------------------------------------------------------------------- Kiri's Cropping Tool 0.1 Copyright (c) 2018 Kiri Jolly http://expiredpopsicle.com [email protected] ---------------------------------------------------------------------- This tool attempts to resize and crop an image to the most complex region to match the aspect ratio of the given size. The region complexity is considered to be the region with the most edges as detected by a Sobel edge detection filter done against a luminance map of the input images for RGB and RGBA inputs, or against the image itself for Grayscale and Grayscale + alpha images. ---------------------------------------------------------------------- Installation ---------------------------------------------------------------------- First make sure libjpeg-dev and libpng-dev are installed... sudo apt-get install libjpeg-dev libpng-dev If you're installing from a Git repository, you need to have Autotools installed... sudo apt-get install automake autoconf Aside from that you need Git (to automatically pull the latest Lily-Engine-Utils)... sudo apt-get install git And a C++ compiler. If installing from Git, first generate the configure script. ./autogen.sh Run the configure script. ./configure Build. make Installation on Debian-based systems will probably want to use checkinstall, but if you want to skip the package manager or you're using another OS, you can just run... sudo make install ---------------------------------------------------------------------- Usage ---------------------------------------------------------------------- Run kcrop with the image of your choice specified on the command line. The --width and --height parameters should be specified, but will default to the original image width and height if they are not. If the --out option is not used, the original image will be overwritten. kcrop image.png \ --out=some_other_filename.png \ --width=128 \ --height=128 ---------------------------------------------------------------------- Butts.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.