PIL help Programming Software Development by kiddo39 Hi I'm trying to use PIL to get data from an image and find 'unusual' RBG … but haven't found the right way. [code] Import Image, PIL im=Image.open("image.bmp") ans=im.getdata… PIL? Programming Software Development by ineedhelpasap Anyone ever used the PIL (Python Image Library)? If you have, is there anyway to … white image to white and black. So: [code=python] import PIL image = Image open(filename) pixels = list(image.getdata()) #insert someway… Re: PIL help Programming Software Development by vegaseat … of (r, g, b) tuples of a bitmap image from PIL import Image img = Image.open("FrenchFlag.bmp") data… Re: PIL? Programming Software Development by vegaseat … ... [code]# invert a black&white bitmap file image from PIL import Image filename = "old.bmp" image = Image.open… Re: PIL and matplotlib for Linux Programming Software Development by Gribouillis On my system it is sudo apt-get install python-matplotlib python3-matplotlib python-pil python3-pil It is easier to find packages with aptitude sudo apt-get install aptitude aptitude search pil Re: PIL question Programming Software Development by sneekula …s create a sample image file: [code=python]# drawing with PIL (Python Image Library) # draw and save a small French …flag (blue, white, red) from PIL import Image, ImageDraw # create a new 24x16 pixel image surface… (r, g, b) tuples of a bitmap image from PIL import Image # French flag has a simple blue white red… Re: PIL (Python Image Library) Question!!!! (HELP!) Programming Software Development by sneekula … something like this with PIL: [code=python]# create an empty image with PIL and put pixels inside from PIL import Image # use a… PIl library global error Programming Software Development by ShinyDean I am currently using the Pil library for a project, however i keep running into the …[0] print pixels[1] [CODE][/CODE] I have imported the PIL library into the task but i keep getting the same… Re: PIL or equivalent for saving images in Python 3.x Programming Software Development by JoshuaBurleson … for this I found a GREAT source for Python 3 PIL with easy installation and confirmed operational [URL="http://www….lfd.uci.edu/~gohlke/pythonlibs/#pil"]http://www.lfd.uci.edu/~gohlke/pythonlibs/#pil[/URL] Test notes: running on windows… PIL and matplotlib for Linux Programming Software Development by sneekula On my Raspberry Pi computer I did a search for PIL and matplotlib with apt-cache search python but could not find anything close in the list. Is PIL/Pillow and matplotlib available for Linux and what is it called? The Raspberry Pi has Python27 and Python32 installed. Re: PIL and matplotlib for Linux Programming Software Development by snippsat Pillow fork dos more than just bugfix of orginal PIL. It now comes with [new stuff and serval improvements](http://blog.uploadcare.com/post/106828637418/pillow-2-7-extended-release-notes). So it can be smart to get Pillow instead of PIL. Re: PIl library global error Programming Software Development by jcao219 [icode]from PIL import Image[/icode] Re: PIl library global error Programming Software Development by ShinyDean did you not read that i said i have imported the PIL library. its telling me that image = [COLOR="Red"]Image[/COLOR].open(filename) is not defined Re: PIl library global error Programming Software Development by ShinyDean … been put after the test cases: if __name__ == '__main__': from PIL import * ## Creates the black and white negative bitmap bw_negative('farmland… Re: PIl library global error Programming Software Development by ShinyDean I have tried it with the from PIL import Image but i kept getting teh same error for a while untill i edited out some code and then it would jsut not do anything. Re: PIl library global error Programming Software Development by vegaseat … code this way to make the import global ... [code]from PIL import Image def bw_negative(filename): """ This function… Re: PIL and matplotlib for Linux Programming Software Development by Gribouillis In Kubuntu, aptitude says that the new python Pil is a fork of Pillow. Re: PIL and matplotlib for Linux Programming Software Development by vegaseat It is my understanding that pillow has basicly taken over the further development of PIL. PIL bitmap converting Programming Software Development by lllllIllIlllI Hey i was wondering if there was any way to convert a 24 bit Bitmap into a 256 colour bitmap using PIL or something simillar. I found something like: [code=python] image = image.convert("P",color = Image.ADAPTIVE) [/code] But i couldn't work out how to make that work. So yeah any way that you know would be lovely. Cheers PIL question Programming Software Development by kiddo39 Hi, how can I open an image and get the R,G,B values of just the first line? [code] from PIL import Image im=Image.open("image.bmp") img=im.getcolors() print img [/code] I've tried im.getdata() , im.histogram, etc.... but again, what I'm looking for is more of R,G,B pixel counts for just the 1st line in the image. PIL (Python Image Library) Question!!!! (HELP!) Programming Software Development by mediachicken … number and such, and generate an image. So, I have PIL creating a blank PNG image and saving it, it all… Re: PIL (Python Image Library) Question!!!! (HELP!) Programming Software Development by Dan08 See if [URL="www.pythonware.com/library/pil/handbook/introduction.htm"]this[/URL] helps you. Dan08. Re: PIL (Python Image Library) Question!!!! (HELP!) Programming Software Development by mediachicken Is there a way to use a similar method with images instead of pixels? I know about all of that, but I need to load multiple images into PIL and tile them in a square... Is it possible? Re: PIL (Python Image Library) Question!!!! (HELP!) Programming Software Development by bumsfeld …[/COLOR][/B], but I need to load multiple images into PIL and tile them in a square... Is it possible?[/QUOTE… Re: PIL (Python Image Library) Question!!!! (HELP!) Programming Software Development by djidjadji You can use the Image.paste(imagesrc, box) method [URL="http://www.effbot.org/imagingbook/image.htm#tag-Image.Image.paste"]PIL-doc Image.Image.paste[/URL] PIL or equivalent for saving images in Python 3.x Programming Software Development by JoshuaBurleson Hello mates, I was wondering if in that vast amount of knowledge floating around here if any of you knew how I could save an image using Python 3.x. I know that PIL is a great, and easy option for Python 2, but I assume there must be some way to do this with 3. Ideas? Re: PIL or equivalent for saving images in Python 3.x Programming Software Development by JoshuaBurleson are jpg images completely unsupported for tkinter without PIL? Re: PIL or equivalent for saving images in Python 3.x Programming Software Development by TrustyTony You could store uncompressed bmp by the class that is in my mandelbrot snippet. There does indeed seem to be unofficial PIL existing for Python3: [url]http://stackoverflow.com/questions/3896286/image-library-for-python-3[/url] (as well as some alternatives) Re: PIL or equivalent for saving images in Python 3.x Programming Software Development by TrustyTony Until now I have been satisfied to code for PIL in Python 2 PIL Capture and store images Programming Software Development by Subhradeep I am using Debian Linux and Python 2.7 with PIL. I want to capture an image from a webcam and store it in a file. What are the ways in which this can be done? Also,I want to covert the captured image for modification using Scipy. What is the procedure.for this. My code is intended to run on the raspberry Pi.