Concept

Color Transformations (Pillow)

Pillow allows for converting images to different color modes.

image.convert(mode=None, matrix=None, dither=None, palette=0, colors=256)

mode - The desired color mode matrix - Optional conversion matrix dither - Optional dithering method. Can be either NONE or FLOYDSTEINBERG palette - Palette to use. Can be either WEB or ADAPTIVE. WEB involves a set number of colors while ADAPTIVE uses the number of colors set by the colors argument colors - Number of colors to use if palette is ADAPTIVE

0

1

Updated 2021-07-17

Contributors are:

Who are from:

Tags

Python Programming Language

Data Science