How to get image height using Python

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shaafi

    How to get image height using Python

    I want to expand the height of a picture in python......Any suggestions?

    I want to define a function that takes a picture and an integer. The integer value determines how many times taller the expanded picture is than the original. eg a value of 2 returns a picture that is twice as tall
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    I have never done it, but PIL Image method transform() can be used to scale, translate, rotate and shear an image, returning a new image.

    Comment

    Working...