By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,402 Members | 1,047 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,402 IT Pros & Developers. It's quick & easy.

How to get image height using Python

P: n/a
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
Sep 30 '10 #1
Share this Question
Share on Google+
1 Reply


bvdet
Expert Mod 2.5K+
P: 2,851
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.
Oct 1 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.