Python imageop Functions
EditRocket provides the following information on imageop functions in the Python source code builder.
crop(image, psize, width, height, x0, y0, x1, y1) - Return the selected part of image, which should be width by height in size and consist of pixels of psize bytes.
dither2grey2(image, width, height) - Convert an 8-bit greyscale image to a 2-bit greyscale image with dithering.
dither2mono(image, width, height) - Convert an 8-bit greyscale image to a 1-bit monochrome image using a (simple-minded) dithering algorithm.
grey22grey(image, width, height) - Convert a 2-bit greyscale image to an 8-bit greyscale image.
grey2grey2(image, width, height) - Convert an 8-bit greyscale image to a 2-bit greyscale image without dithering.
grey2grey4(image, width, height) - Convert an 8-bit greyscale image to a 4-bit greyscale image without dithering.
grey2mono(image, width, height, threshold) - Convert a 8-bit deep greyscale image to a 1-bit deep image by thresholding all the pixels.
grey42grey(image, width, height) - Convert a 4-bit greyscale image to an 8-bit greyscale image.
mono2grey(image, width, height, p0, p1) - Convert a 1-bit monochrome image to an 8 bit greyscale or color image.
scale(image, psize, width, height, newwidth, newheight) - Return image scaled to size newwidth by newheight.
tovideo(image, psize, width, height) - Run a vertical low-pass filter over an image.