Python PIL.Image.align_values() Examples

The following are 10 code examples for showing how to use PIL.Image.align_values(). These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example.

You may check out the related API usage on the sidebar.

You may also want to check out all available functions/classes of the module PIL.Image , or try the search function .

Example 1
Project: faces   Author: skarlekar   File: images.py    License: GNU General Public License v2.0 5 votes vote down vote up
def align(argument):
        # This is not callable as self.align.  We cannot make it a
        # staticmethod because we're saving an unbound method in
        # option_spec below.
        return directives.choice(argument, Image.align_values) 
Example 2
Project: faces   Author: skarlekar   File: images.py    License: GNU General Public License v2.0 5 votes vote down vote up
def align(argument):
        # This is not callable as self.align.  We cannot make it a
        # staticmethod because we're saving an unbound method in
        # option_spec below.
        return directives.choice(argument, Image.align_values) 
Example 3
Project: deepWordBug   Author: QData   File: images.py    License: Apache License 2.0 5 votes vote down vote up
def align(argument):
        # This is not callable as self.align.  We cannot make it a
        # staticmethod because we're saving an unbound method in
        # option_spec below.
        return directives.choice(argument, Image.align_values) 
Example 4
Project: bash-lambda-layer   Author: gkrizek   File: images.py    License: MIT License 5 votes vote down vote up
def align(argument):
        # This is not callable as self.align.  We cannot make it a
        # staticmethod because we're saving an unbound method in
        # option_spec below.
        return directives.choice(argument, Image.align_values) 
Example 5
Project: cadquery-freecad-module   Author: jmwright   File: images.py    License: GNU Lesser General Public License v3.0 5 votes vote down vote up
def align(argument):
        # This is not callable as self.align.  We cannot make it a
        # staticmethod because we're saving an unbound method in
        # option_spec below.
        return directives.choice(argument, Image.align_values) 
Example 6
Project: AWS-Transit-Gateway-Demo-MultiAccount   Author: MattTunny   File: images.py    License: MIT License 5 votes vote down vote up
def align(argument):
        # This is not callable as self.align.  We cannot make it a
        # staticmethod because we're saving an unbound method in
        # option_spec below.
        return directives.choice(argument, Image.align_values) 
Example 7
Project: AWS-Transit-Gateway-Demo-MultiAccount   Author: MattTunny   File: images.py    License: MIT License 5 votes vote down vote up
def align(argument):
        # This is not callable as self.align.  We cannot make it a
        # staticmethod because we're saving an unbound method in
        # option_spec below.
        return directives.choice(argument, Image.align_values) 
Example 8
Project: blackmamba   Author: zrzka   File: images.py    License: MIT License 5 votes vote down vote up
def align(argument):
        # This is not callable as self.align.  We cannot make it a
        # staticmethod because we're saving an unbound method in
        # option_spec below.
        return directives.choice(argument, Image.align_values) 
Example 9
Project: aws-extender   Author: VirtueSecurity   File: images.py    License: MIT License 5 votes vote down vote up
def align(argument):
        # This is not callable as self.align.  We cannot make it a
        # staticmethod because we're saving an unbound method in
        # option_spec below.
        return directives.choice(argument, Image.align_values) 
Example 10
Project: aws-builders-fair-projects   Author: aws-samples   File: images.py    License: Apache License 2.0 5 votes vote down vote up
def align(argument):
        # This is not callable as self.align.  We cannot make it a
        # staticmethod because we're saving an unbound method in
        # option_spec below.
        return directives.choice(argument, Image.align_values)