Posts

Showing posts from January, 2017

How to crop a image by using python

Image
How to crop a image by using python  In this blog and video,I am going to tell how to crop a image by using python script. The source code of this program is very simple and easy.I am going to use pillow package to implement this program. Source Code: 1)Go to pycharm 2)File->setting->project->project Interpreter->Click + button->type pillow->Install the pakage 3)copy the image paste in file location 4)follow the code from PIL import Image img = Image.open( "shelly.jpg" ) area=( 350 , 5 , 1000 , 500 ) #crop size crop1=img.crop(area) img.show() crop1.show() PIL : python 2.4 version Pillow : python above 2.4 version I hope you understood this program and if you have any doubt or suggestion tell me in youtube comment box  support me for more videos and blogs by Karthick Aravindan