Class: MiniMagick::Image

Class | MiniMagick::Image
In: | lib/mini_magick.rb
Parent: | Object

### Methods

<< [] combine_options format format_option from_blob method_missing new open run_command to_blob windows? write

### External Aliases

open | -> | from_file

### Attributes

output | [R] |
path | [R] |
tempfile | [R] |

### Public Class methods

from_blob(blob, ext = nil)
new(input_path, tempfile=nil)

Instance Methods

open(image_path)

Use this if you don‘t want to overwrite the image file

### Public Instance methods

<<(*args)

Sends raw commands to imagemagick‘s mogrify command. The image path is automatically appended to the command

[](value)

For reference see www.imagemagick.org/script/command-line-options.php#format

combine_options(&block)

You can use multiple commands together using this method

format(format, page=0)

This is a ‘special’ command because it needs to change @path to reflect the new extension Formatting an animation into a non-animated type will result in ImageMagick creating multiple pages (starting with 0). You can choose which page you want to manipulate. We default to the first page.

format_option(format)

Outputs a carriage-return delimited format string for Unix and Windows

method_missing(symbol, *args)

If an unknown method is called then it is sent through the morgrify program Look here to find all the commands (www.imagemagick.org/script/mogrify.php)

run_command(command, *args)
to_blob()

Give you raw data back

windows?()

Check to see if we are running on win32 — we need to escape things differently

write(output_path)

Writes the temporary image that we are using for processing to the output path

[Validate]