MiniMagick

Attributes

processor[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 16
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 24
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 28
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 32
def valid_version_installed?
  image_magick_version >= minimum_image_magick_version
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.