Module: MiniMagick

### Home Classes Methods

### In Files

- lib/mini_magick/version.rb
- lib/mini_magick.rb

### Namespace

- CLASS MiniMagick::CommandBuilder
- CLASS MiniMagick::Error
- CLASS MiniMagick::Image
- CLASS MiniMagick::Invalid

### Methods

- ::choose_processor
- ::image_magick_version
- ::minimum_image_magick_version
- ::valid_version_installed?

### Class/Module Index

Quicksearch

- MiniMagick
- MiniMagick::CommandBuilder
- MiniMagick::Error
- MiniMagick::Image
- MiniMagick::Invalid

No matching classes.

# MiniMagick

### Constants

IMAGE_CREATION_OPERATORS
MOGRIFY_COMMANDS
VERSION

### Attributes

processor[RW]
processor_path[RW]
timeout[RW]

### Public Class Methods

choose_processor() click to toggle source

Experimental method for automatically selecting a processor such as gm. Only works on *nix.

TODO: Write tests for this and figure out what platforms it supports

    # File lib/mini_magick.rb, line 18
    def choose_processor
      if `type -P mogrify`.size > 0
        return
      elsif `type -P gm`.size > 0
        self.processor = "gm"
      end
    end

image_magick_version() click to toggle source

    # File lib/mini_magick.rb, line 26
    def image_magick_version
      @@version ||= Gem::Version.create(`mogrify --version`.split(" ")[2].split("-").first)
    end

minimum_image_magick_version() click to toggle source

    # File lib/mini_magick.rb, line 30
    def minimum_image_magick_version
      @@minimum_version ||= Gem::Version.create("6.6.3")
    end

valid_version_installed?() click to toggle source

    # File lib/mini_magick.rb, line 34
    def valid_version_installed?
      image_magick_version >= minimum_image_magick_version
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.