
A value of 4 willĮvaluate each pixels top-bottom, & left-right
connectivity ( numbers.Integral) – Either 4, or 8. fuzz = 0.1 * QUANTUM_RANGE # 10% objects = img. gravity – Calculate the top & left values based onįrom wand.image import Image from wand.version import QUANTUM_RANGE with Image ( filename = 'objects.gif' ) as img : img. arguments ( basestring) – Additional numbers given as a geometry string, orĬomma delimited values. top ( numbers.Integral) – the row offset of the composited source image. left ( numbers.Integral) – the column offset of the composited source image.
operator ( basestring) – the operator that affects how the composite. (the receiver image becomes the destination) image ( Image) – the composited source image. composite_channel ( channel, image, operator, left=None, top=None, arguments=None, gravity=None ) ¶Ĭomposite two images using the particular channel. 'background' replaces full-transparent color with background color.Ĭhanged in version 0.5.3: Optional gravity argument was added. 'remove' will composite background_color value. 'shape' is identical to 'copy', but will color the resulting image with the value defined with background_color. 'copy' calculates the gray-scale of RGB channels, and applies it to alpha channel. 'extract' copies data in alpha channel across all other channels, and disables alpha channel. IMAGEMAGICK CANVAS RESIZE FULL
'transparent' enables alpha/matte channel, and forces full transparent image. 'opaque' enables alpha/matte channel, and forces full opaque image. 'set' enables and resets any data in an images alpha channel. 'associate' & 'disassociate' toggle alpha channel flag in certain image-file specifications. 'deactivate', 'off', or False will disable an images alpha channel. 'activate', 'on', or True will enable an images alpha channel. It can also be used to enable/disable alpha channel, but with differentīehavior of setting alpha_channel is defined with the ( bool) Get state of image alpha channel. NOISE_TYPES = ('undefined', 'uniform', 'gaussian', 'multiplicative_gaussian', 'impulse', 'laplacian', 'poisson', 'random') ¶ MORPHOLOGY_METHODS = ('undefined', 'convolve', 'correlate', 'erode', 'dilate', 'erode_intensity', 'dilate_intensity', 'iterative_distance', 'open', 'close', 'open_intensity', 'close_intensity', 'smooth', 'edgein', 'edgeout', 'edge', 'tophat', 'bottom_hat', 'hit_and_miss', 'thinning', 'thicken', 'distance', 'voronoi') ¶ KERNEL_INFO_TYPES = ('undefined', 'unity', 'gaussian', 'dog', 'log', 'blur', 'comet', 'binomial', 'laplacian', 'sobel', 'frei_chen', 'roberts', 'prewitt', 'compass', 'kirsch', 'diamond', 'square', 'rectangle', 'octagon', 'disk', 'plus', 'cross', 'ring', 'peaks', 'edges', 'corners', 'diagonals', 'line_ends', 'line_junctions', 'ridges', 'convex_hull', 'thin_se', 'skeleton', 'chebyshev', 'manhattan', 'octagonal', 'euclidean', 'user_defined') ¶ 'minus' has been split into 'minus_dst' & 'minus_src'. COMPOSITE_OPERATORS = ('undefined', 'alpha', 'atop', 'blend', 'blur', 'bumpmap', 'change_mask', 'clear', 'color_burn', 'color_dodge', 'colorize', 'copy_black', 'copy_blue', 'copy', 'copy_cyan', 'copy_green', 'copy_magenta', 'copy_alpha', 'copy_red', 'copy_yellow', 'darken', 'darken_intensity', 'difference', 'displace', 'dissolve', 'distort', 'divide_dst', 'divide_src', 'dst_atop', 'dst', 'dst_in', 'dst_out', 'dst_over', 'exclusion', 'hard_light', 'hard_mix', 'hue', 'in', 'intensity', 'lighten', 'lighten_intensity', 'linear_burn', 'linear_dodge', 'linear_light', 'luminize', 'mathematics', 'minus_dst', 'minus_src', 'modulate', 'modulus_add', 'modulus_subtract', 'multiply', 'no', 'out', 'over', 'overlay', 'pegtop_light', 'pin_light', 'plus', 'replace', 'saturate', 'screen', 'soft_light', 'src_atop', 'src', 'src_in', 'src_out', 'src_over', 'threshold', 'vivid_light', 'xor', 'stereo') ¶ 'subtract' has been renamed to 'modulus_subtract', 'divide' has been split into 'divide_dst' & 'divide_src', and Changed in version 0.5.4: - Remapped MetricType enum.