This module has never been well documented. However, it hasn't changed since 2001, so it will probably be safe for you to read the source code and figure out the internals if you need to. The ImagePalette class has several methods, but they are all "experimental".
ImagePalette.ImagePalette() Color palette for mapped palette images.
Syntax: PIL .ImagePalette.ImagePalette (mode = 'RGB', palette = None, size = 0)
mode - The mode to use for the Palette.
palette - An optional palette.
size - An optional palette size. If given, it cannot be equal to or greater than 256. Defaults to 0.
Return :: The ImagePalette object.
PIL.ImagePalette.ImagePalette object at 0x000001930723FC50
Another example: take another image with .JPG extension. p>
PIL.ImagePalette.ImagePalette object at 0x000001B8808AFCC0
Mastering regular expressions by Jeffrey Friedl, 3rd edition. Regular expressions are an extremely powerful tool for manipulating text and data. They are standard features today in a variety of pop...
We live in an age of so-called Big Data. We hear terms like data scientist, and there is much talk about analytics and the mining of large amounts of corporate data for tidbits of business value. Ther...
Systems programming provides the basis for global calculation. Developing performance-sensitive code requires a programming language that allows programmers to control the use of memory, processor tim...
The rate at which we produce data is growing steadily, thus creating even larger streams of continuously evolving data. Online news, micro-blogs, search queries are just a few examples of these contin...