Python Imaging Library Overview
|March12,2002|FredrikLundh, ,anefficientinternalrepresentation, ' ,convertbetweenfileformats,printimages, , ,youcanuseJackJansen' ,there' ,includingpointoperations,filteringwitha setofbuilt-inconvolutionkernels, , ' , , ;eitherbyloadingimagesfromfiles,processi ngotherimages, ,usetheopenfunctionintheImagemodule.>>> import image >>> im = (" ")Ifsuccessful, >>> print , , (512, 512) , (inpixels).Themodeattributedefinesthenum berandnamesofthebandsintheimage, "L"(luminance)forgreyscaleimages,"RGB"fo rtruecolourimages,and"CMYK" , , ,let'sdisplaytheimagewejustloaded: >>> ()(Thestandardversionofshowisnotveryeffi cient, 'thavexvinstalled,itwon' ,itisveryhandyfordebuggingandtests.) , ' , , , :ConvertfilestoJPEGimport os, sysimport Imagefor infile in [1:]: outfile = (infile)[0] + ".jpg" if infile != outfile: try: (infile).save(outfile) except IOError: print "cannot convert", ,youmustalwaysspecifytheformatthisway:Ex ample:CreateJPEGThumbnailsimport os, sysimport Imagefor infile in [1:]: outfile = (infile)[0] + ".
Python Imaging Library Overview PIL 1.1.3 | March 12, 2002 | Fredrik Lundh, Matthew Ellis Introduction The Python Imaging Library adds image processing …
Download Python Imaging Library Overview
Information
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
Related search queries
Embedded low-power deep learning with TIDL, Digital Signal Processing, PROCESSING, Moving average, Signal Processing, Convolution, Image Processing with ImageJ, Image, Image Processing, INTRODUCTION TO IMAGE PROCESSING, In Image Processing, Image processing and data analysis The multiscale, Image processing and data analysis The multiscale approach, Augmentation for Environmental Sound Classification