No commit activity in last 3 years
No release in over 3 years
Magick Minimalistic allows you to use some commands from the imagemagick's shell package with Ruby's hashes.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Magick Minimalistic

A ruby wrapper for ImageMagick command line. I have just added the gravity, crop and resize options from image-magick.

Requirements

Imagemagick command-line tool has to be installed. You can check their official website documentation: website

Installation

Add the gem to your Gemfile:

gem 'magick_minimalistic'

Usage

Here's a basic example:

require 'magick_minimalistic'

im = MagickMinimalistic::Configurator.new({source: 'file_source.png', config: {gravity: 'Center', crop: "50%", resize: "100x100"}, destiny: 'file_destiny.png'})
im.run

For the resize and crop options you can use a percentile or a number x number like:

crop: '50%'
resize: '100x100'

You can use any gravity option:

NorthWest, North, NorthEast, West, Center, East, SouthWest, South, SouthEast