View source on GitHub |
Image manipulation API.
App Engine provides the ability to manipulate image data using a dedicated Images service. The Images service can resize, rotate, flip, and crop images; it can composite multiple images into a single image; and it can convert image data between several formats. It can also enhance photographs using a predefined algorithm. The API can also provide information about an image, such as its format, width, height, and a histogram of color values.
Modules
images_blob_stub
module: Stub version of the blob-related parts of the images API.
images_stub
module: Stub version of the images API.
Classes
class AccessDeniedError
: The application does not have permission to access the image.
class BadImageError
: The image data is corrupt.
class BlobKeyRequiredError
: A blob key is required for this operation.
class Error
: Base error class for this module.
class Image
: Image object to manipulate.
class InvalidBlobKeyError
: The provided blob key was invalid.
class LargeImageError
: The image data is too large to process.
class NotImageError
: The image data given is not recognizable as an image.
class ObjectNotFoundError
: The blob key referred to an object that does not exist.
class TransformationError
: An error occurred while attempting to transform the image.
class UnsupportedSizeError
: The size that was specified is not supported by requested operation.
Functions
composite(...)
: Composites one or more images onto a canvas.
composite_async(...)
: Asynchronously composites one or more images onto a canvas.
create_rpc(...)
: Creates an RPC object for use with the Images API.
crop(...)
: Crops the image.
crop_async(...)
: Asynchronously crops the given image.
delete_serving_url(...)
: Deletes a serving URL created for blob_key
using get_serving_url
.
delete_serving_url_async(...)
: Deletes a serving URL created using get_serving_url - async version.
get_serving_url(...)
: Obtains a URL that will serve the underlying image.
get_serving_url_async(...)
: Asynchronously obtains a URL that will serve the underlying image.
histogram(...)
: Calculates the histogram of the given image.
histogram_async(...)
: Calculates the histogram of the given image - async version.
horizontal_flip(...)
: Flips the image horizontally.
horizontal_flip_async(...)
: Asynchronously flips the image horizontally.
im_feeling_lucky(...)
: Automatically adjusts image levels.
im_feeling_lucky_async(...)
: Asynchronously automatically adjusts image levels.
resize(...)
: Resizes a given image file while maintaining the aspect ratio.
resize_async(...)
: Asynchronously resizes an image file, maintaining the aspect ratio.
rotate(...)
: Rotates an image a given number of degrees clockwise.
rotate_async(...)
: Asynchronously rotates an image a specified number of degrees clockwise.
vertical_flip(...)
: Flips the image vertically.
vertical_flip_async(...)
: Asynchronously flips the image vertically.