MagickOutput

Output object for writing image files using RMagick.  It is recommended to use the save_* methods of Sequence_ instead.

RMagick is an interface to ImageMagick/Magick++.  A full-featured installation of ImageMagick supports writing to a large set of file formats (8BIM, 8BIMTEXT, 8BIMWTEXT, APP1, APP1JPEG, AVS, BIE, BMP, BMP2, BMP3, CMYK, CMYKA, DCX, DPX, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXIF, FAX, FITS, FPX, G3, GIF, GIF87, GRAY, HISTOGRAM, HTM, HTML, ICB, ICC, ICM, IPTC, IPTCTEXT, IPTCWTEXT, JBG, JBIG, JNG, JPEG, JPG, LOGO, M2V, MAP, MATTE, MIFF, MNG, MONO, MPC, MPEG, MPG, MSL, MTV, MVG, NULL, OTB, P7, PAL, PALM, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PGM, PICON, PICT, PM, PNG, PNG24, PNG32, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSD, PTIF, RAS, RGB, RGBA, SGI, SHTML, SUN, SVG, TEXT, TGA, TIF, TIFF, TXT, UIL, UYVY, VDA, VICAR, VID, VIFF, VST, WBMP, X, XBM, XMP, XPM, XV, XWD, YUV).

Note that there are still countries with laws restricting the distribution of free image compression software for some file formats.

See also

Summary
MagickOutputOutput object for writing image files using RMagick.
Properties
formatSet the file format.
Functions
MagickOutput.newConstructor.
inspectReturn string with information about this object.
writeAdd a single image to the output.
closeWrite the images and close the file.
status?Returns true if output is still possible.

Properties

format

Set the file format.

Functions

MagickOutput.new

def MagickOutput.new(file)

Constructor.

Parameters

fileA filename or an open file.

inspect

def inspect

Returns

Return string with information about this object.  The string will look like this: <tt>”MagickOutput-object(1 image(s) so far)”</tt>.

write

def write(img)

Add a single image to the output.

close

def close

Write the images and close the file.

status?

def status?

Returns true if output is still possible.

def MagickOutput.new(file)
Constructor.
def inspect
Return string with information about this object.
def write(img)
Add a single image to the output.
def close
Write the images and close the file.
def status?
Returns true if output is still possible.
This class provides fast (multi-dimensional) Ruby arrays where all elements are of the same type.
Close