O'Reilly logo

Python 2.6 Graphics Cookbook by Mike Ohlson de Fine

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Working with Pictures

In this chapter, we will cover:

  • Picture formats in native Python
  • Opening an image and discovering its attributes
  • The Python image Library format conversions: .jpg, .png, .tiff, .gif, and, .bmp
  • Image rotation in the plane
  • Re-sizing images
  • Re-sizing with correct aspect ratio
  • Rotating images
  • Separating color bands
  • Red, green, and blue color re-mixing
  • Combining images by blending
  • Blending images by varying percentages
  • Making composites with image masks
  • Offset (roll) an image horizontally and vertically
  • Geometric transformations: horizontal and vertical flipping and rotation
  • Filters: sharpen, blur, edge enhance, emboss, smooth, contour, and detail
  • Apparent rotation by re-sizing

Now we will work with raster images. These are things like ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required