MiniMagick

Constants

MOGRIFY_COMMANDS
IMAGE_CREATION_OPERATORS

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
16:     def choose_processor
17:       if `type -P mogrify`.size > 0
18:         return
19:       elsif `type -P gm`.size > 0
20:         self.processor = "gm"
21:       end
22:     end
image_magick_version() click to toggle source
    # File lib/mini_magick.rb, line 24
24:     def image_magick_version
25:       @@version ||= Gem::Version.create(`mogrify --version`.split(" ")[2].split("-").first)
26:     end
minimum_image_magick_version() click to toggle source
    # File lib/mini_magick.rb, line 28
28:     def minimum_image_magick_version
29:       @@minimum_version ||= Gem::Version.create("6.6.3")
30:     end
valid_version_installed?() click to toggle source
    # File lib/mini_magick.rb, line 32
32:     def valid_version_installed?
33:       image_magick_version >= minimum_image_magick_version
34:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.