From Jean-Baptiste.cazier@decode.is Mon Mar 3 12:15:43 2003 From: Jean-Baptiste.cazier@decode.is (Jean-Baptiste Cazier) Date: Mon, 3 Mar 2003 12:15:43 +0000 Subject: [Image-SIG] Gtk pixmap into PIL Message-ID: <20030303121543.41fbb262.Jean-Baptiste.cazier@decode.is> S=E6l ! I have defined a gtkImage usign python 1-5 and gtk1.2 (pygt 0.6.8) and I would like to import it into a PIL image The usual paste does not work. How could I do that ? Thanks Regards, Jean-Baptiste --=20 ----------------------------- Jean-Baptiste.Cazier@decode.is Department of Statistics deCODE genetics Sturlugata,8 570 2993 101 Reykjav=EDk From dobler@interaxia.ch Mon Mar 3 18:55:28 2003 From: dobler@interaxia.ch (Volker Dobler) Date: Mon, 3 Mar 2003 19:55:28 +0100 Subject: [Image-SIG] Question about file decoder Message-ID: <01CC2FBB7C2E3A4C8B26849617E27EED0559A5@inte_fin> Hello, I wrote a file decoder for a simple image format (header followed by 16bit data) by subclassing ImageFile, providing a _open() method and using a the apropriate raw decodeer. It works. Now my question: The 16bit data is scaled by a factor and should be rescaled to the "real" values during reading. The scaling factor can be found in the header and is extracted during _open(). How can I do this rescaling during the reading of=20 the file. =20 Of course a can save the scaling factor and do a img.point( lambda z: z*scaling + 0 ) afterwards, but I want to implement this step into the reading of the data. Any suggestions are welcome. Thanks Volker -- Dr. Volker Dobler e-mail: volker.dobler at interaxia.ch Interaxia AG phone: ++41 (0)41 747 06 51 Hinterergstr. 17, fax: ++41 (0)41 747 06 61 CH-6330 Cham/Zug, Switzerland --- Ausgehende Mail ist zertifiziert virenfrei. =DCberpr=FCft durch AVG Antivirus System (http://www.grisoft.com/de). Version: 6.0.394 / Virendatenbank: 224 - Erstellungsdatum: 03.10.02 =20 From benles@bldigital.com Wed Mar 5 04:06:36 2003 From: benles@bldigital.com (Ben Allfree) Date: Tue, 4 Mar 2003 20:06:36 -0800 Subject: [Image-SIG] Image.py suggestion for py2exe support Message-ID: <000001c2e2cc$9eb80120$657ba8c0@longshot> Though not actually a bug, I recommend putting a note in the documentation that the Image module uses dynamic __imports__ that are incompatible with py2exe. I also recommend telling users to explicitly import needed ImagePlugins in Image.init(): # ****************************** # py2exe hack import GifImagePlugin # ****************************** # only check directories (including current, if present in the path) for directory in filter(isDirectory, directories): ... ... ... From pascalbarbedor@free.fr Wed Mar 5 10:17:24 2003 From: pascalbarbedor@free.fr (pascalbarbedor@free.fr) Date: Wed, 05 Mar 2003 11:17:24 +0100 (CET) Subject: [Image-SIG] bug in pilfont utility pil 1.1.2 Message-ID: <1046859444.3e65ceb49fe58@imp.free.fr> Hi having installed pil 1.1.2 for windows with python 2.2 I had the following error when using pilfont utility to convert bdf to pilformat font : keyerror c in BdfFontFile.py line 110 this appears to be resolved by replacing font[11] = bdf_spacing[font[11]] with font[11] = bdf_spacing[font[11].upper()] since bdf_spacing has key C but not c after that all works ok and I could use fonts to create images normally thanks pascal From schutte@fel.tno.nl Thu Mar 6 07:27:08 2003 From: schutte@fel.tno.nl (K Schutte) Date: Thu, 06 Mar 2003 08:27:08 +0100 Subject: [Image-SIG] 16-bit unsigned short: PIL tile descriptor? References: Message-ID: <3E66F84C.81BF137A@fel.tno.nl> Hi, >From my understanding, the correct mode for unsigned shorts (in the same endian mode as the machine where you work on) is I;16. A F;16 mode denotes a 16 bit float, which obviously is wrong. Good luck, Klamer "K.Arun" wrote: > > Hello, > > I'm trying to write a PIL plug-in for a in-house image > format. It's a very simple format with a 1024-byte header followed by > unsigned shorts in big-endian byte order. I tried using both the 'raw' > and 'bit' decoders without much success - while 'L' works with 'raw', > in that I don't get any errors, my images look weird when > processed. Using "F;16B" in the parameters tuple for 'raw' mode (what > should self.mode be in this case ?), results in a 'ValueError : > unrecognized mode' exception being thrown. Could someone throw light > on what self.mode needs to be set to and the correct tile descriptor > values to use ? Thanks, > > -arun > > _______________________________________________ > Image-SIG maillist - Image-SIG@python.org > http://mail.python.org/mailman/listinfo/image-sig -- Klamer Schutte, E-mail: Schutte@fel.tno.nl Electro-Optical Systems, TNO Physics and Electronics Laboratory Tel: +31-70-3740469 -- Fax: +31-70-3740654 -- Mobile: +31-6-51316671 From webmaster@pferdemarkt.ws Thu Mar 6 14:04:52 2003 From: webmaster@pferdemarkt.ws (webmaster@pferdemarkt.ws) Date: Thu, 6 Mar 2003 06:04:52 -0800 Subject: [Image-SIG] Pferdemarkt.ws informiert! Newsletter 03/2003 http://www.pferdemarkt.ws Message-ID: <200303061404.GAA22779@eagle.he.net> http://www.pferdemarkt.ws Wir sind in 2003 erfolgreich in des neue \"Pferdejahr 2003 gestartet. Für den schnellen Erfolg unseres Marktes möchten wir uns bei Ihnen bedanken. Heute am 06.03.2003 sind wir gut 2 Monate Online! Täglich wächst unsere Datenbank um 30 Neue Angebote. Stellen auch Sie als Privatperson Ihre zu verkaufenden Pferde direkt und vollkommen kostenlos ins Internet. Zur besseren Sichtbarmachung Ihrer Angebote können Sie bis zu ein Bild zu Ihrer Pferdeanzeige kostenlos einstellen! Wollen Sie direkt auf die erste Seite, dann können wir Ihnen unser Bonussystem empfehlen. klicken Sie hier: http://www.pferdemarkt.ws/bestellung.html Ihr http://Pferdemarkt.ws Team Klicken Sie hier um sich direkt einzuloggen http://www.Pferdemarkt.ws Kostenlos Anbieten, Kostenlos Suchen! Direkt von Privat zu Privat! Haben Sie noch Fragen mailto: webmaster@pferdemarkt.ws From thas_y@yahoo.ca Fri Mar 7 17:50:44 2003 From: thas_y@yahoo.ca (Thas Yuwaraj) Date: Fri, 7 Mar 2003 12:50:44 -0500 Subject: [Image-SIG] clarification on image segmentation routines Message-ID: <200303071250.44594.thas_y@yahoo.ca> Hello, I have just started getting into PIL as a platform for experimenting with OCR for a language known as Tamil (a South Indian language). It appears that PIL does not have any explicit image segmentation (character segmentation) routines. Before I venture into creating my own set of tools (as an extension of PIL), could you please let me know if such tools (or any form of OCR SDK) already exist for Python? If I'm not mistaken, I could not find morphological filters (errosion/dialation) in PIL either. But then again, these can be easily constructed using the kernel-based filtering routine in PIL. Thank you. Regards, Thas ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca From klimek@grc.nasa.gov Fri Mar 7 21:52:30 2003 From: klimek@grc.nasa.gov (Bob Klimek) Date: Fri, 07 Mar 2003 16:52:30 -0500 Subject: [Image-SIG] clarification on image segmentation routines In-Reply-To: <200303071250.44594.thas_y@yahoo.ca> Message-ID: <4.2.2.20030307164519.00aa0348@parrot.grc.nasa.gov> --=====================_561747==_ Content-Type: text/plain; charset="us-ascii"; format=flowed At 12:50 PM 3/7/2003 -0500, you wrote: >Hello, > >I have just started getting into PIL as a platform for experimenting with OCR >for a language known as Tamil (a South Indian language). >It appears that PIL does not have any explicit image segmentation (character >segmentation) routines. Before I venture into creating my own set of tools >(as an extension of PIL), could you please let me know if such tools (or any >form of OCR SDK) already exist for Python? >If I'm not mistaken, I could not find morphological filters >(errosion/dialation) in PIL either. But then again, these can be easily >constructed using the kernel-based filtering routine in PIL. I've written a few morphological functions using PIL. I've attached a zipped file containing the image-processing functions I use. Towards the bottom you'll find the morphological ones. If you don't use wxPython, just comment out the "wx" related stuff. Bob --=====================_561747==_ Content-Type: application/zip; name="process.zip"; x-mac-type="705A4950"; x-mac-creator="705A4950" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="process.zip" UEsDBBQAAAAIAJVqki0JKn5ogyIAAH2KAAArAAAAUHl0aG9uUHJvZ3JhbXMvcHJldmlvdXMvU3Bv dGxpZ2h0UHJvY2Vzcy5wee09a2/bSJLfDcx/6I2xMGVLsik7szPBOECSSTLGObGReG/HCIIBJVES xxTJJalI3A/3268e/eRDlp157OGWmInF7urq6urq6urq6ube3v6g/rQkwSMulsE8FNd5OgmLIkrm YhIHRSHaYN2nrYq9aJmleclInZc3UVyGuZP0apFmhUpZBuVC/U6zMA/KNBdiX6yKcCrGlVhERZnO 82Apwn+ugjj6V1BGaSJmq2SCP/b29kUShlMAnkHB9eZlOI+Sl6uierXKizT3eiJKxItpkJXRl1BM 0qTMg6I05Wd5uoRi11W5SJPheiMkLYd7e9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MaI+8uttirlUA78rEdC1MfYuWuMD/3BaV2jMca1x1CM5/wNxs1nHfSwnmMewHZ+H sh6fTQuP8GnvAny4G+yUVsYh3xpMoz57DqJ/tAv/EUxiausBfNwBgL1hktQg+AFy6h+peKTk/2Vb F7ixZ+rZJsvqjQRVv9Ub8MN5nfz/CNkfJmTtndrZM/h8Dfu3Chg+7fTg8xBmugJXeyjdNUPkIV+H ZGflYYPLGB6ztRCY+8dm8mu/mCs3NY3TTK4zDuSM+9ilo70edrxSPiFo9xvdv26M1PYE9F0NGk0Q nIXIgQpTc6582LixALJSGpfmV98Kgyn7+K0z3hA2PmT8Ai3tTeA6hvwyIOlz9imMYbG+DCUt/CFp /ZlpdlWSbcs1hYQLISiQQYZ7yk1pC6mHk25AXdkbtnKGbvg55zsmrWXJNIwbcHsdHTjv6j4khMrY 63flEv9j1u/1xeHC2Q2zpF45vFnqZVDs/ym5/4/YbRO7x7uNJDN+Kz/Q10pwYx/VEuJpHqwL/nQ4 rLpoi8ijXTF2TfZs/6UbUk5obBfRbithdGxnyuUnvUrWR5QNuPSZWwnkMFfelblcRht8fXS9K4B2 HugdaW79Np803btAv3ClZ2Kit9zqU3dkkcuj13TR7OAfcR0r6toATY4OHv6TyTKXPzg82nIx0u9I jHVHgzAnhvw/lSpbDPH5X1BLAQIUABQAAAAIAJVqki0JKn5ogyIAAH2KAAArAAAAAAAAAAEAIAC2 gQAAAABQeXRob25Qcm9ncmFtcy9wcmV2aW91cy9TcG90bGlnaHRQcm9jZXNzLnB5UEsFBgAAAAAB AAEAWQAAAMwiAAAAAA== --=====================_561747==_ Content-Type: text/plain; charset="us-ascii"; format=flowed --=====================_561747==_-- From klamer.schutte@wanadoo.nl Sun Mar 9 09:28:05 2003 From: klamer.schutte@wanadoo.nl (Klamer Schutte) Date: Sun, 09 Mar 2003 10:28:05 +0100 Subject: [Image-SIG] writing avi files under linux? Message-ID: <3E6B0925.1080203@wanadoo.nl> Hi, The PIL documentation mentions avi read access. However, I need avi write access (using a Linux platform). Compression would be nice but is not absolute must. Does anyone has code / examples available how to do this? Klamer From markus.vonehr@ipm.fhg.de Thu Mar 13 09:18:21 2003 From: markus.vonehr@ipm.fhg.de (Markus von Ehr) Date: Thu, 13 Mar 2003 10:18:21 +0100 Subject: [Image-SIG] prob: compiling _imaging.pyd on win32 Message-ID: <3E704CDD.2030708@ipm.fhg.de> Hi, I read a lot of messages dealing with compiler problems on windows, but nothing helped. The delivered Makefile.win only builds the .lib and not the dll. I opened a new win32 dll project with vc5.0, but when linking it claims that there are double definitions (_getenv, _free, _calloc, _malloc,_sprintf,_fprintf, _exit) MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _fprintf bereits in=20 LIBCMTD.lib(fprintf.obj) definiert MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _exit bereits in=20 LIBCMTD.lib(crt0dat.obj) definiert MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _sprintf bereits in=20 LIBCMTD.lib(sprintf.obj) definiert MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _getenv bereits in=20 LIBCMTD.lib(getenv.obj) definiert MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _malloc bereits in=20 LIBCMTD.lib(dbgheap.obj) definiert MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _free bereits in=20 LIBCMTD.lib(dbgheap.obj) definiert MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _calloc bereits in=20 LIBCMTD.lib(dbgheap.obj) definiert LINK : warning LNK4098: Standardbibliothek "MSVCRTD" steht in Konflikt=20 mit anderen Bibliotheken; /NODEFAULT:Bibliothek verwenden LINK : warning LNK4098: Standardbibliothek "MSVCRT" steht in Konflikt=20 mit anderen Bibliotheken; /NODEFAULT:Bibliothek verwenden Debug/Imaging.dll : fatal error LNK1169: Ein oder mehrere mehrfach=20 definierte Symbole gefunden Fehler beim Ausf=FChren von link.exe. Imaging.dll - 8 Fehler, 2 Warnung(en) When I leave out the file Except.c there are even more errors (unresolved external symbols: _ImagingError_xxx) Anybody has a makefile for use with nmake building the dll or the vc5.0 project? It seems to me that several people have done it succesfully. Thanks for any help! Markus From skong@umich.edu Thu Mar 13 19:03:31 2003 From: skong@umich.edu (Vein) Date: Thu, 13 Mar 2003 11:03:31 -0800 (PST) Subject: [Image-SIG] unable to open tiff Message-ID: <20030313190331.26877.qmail@web13205.mail.yahoo.com> I'm trying to open a tiff file. I'm unsure what the parameters are for it(compressed,uncompresseed ..etc). this is the code. import Image im = Image.open("test.tiff") It gives me an IOError unable to open file or something like that. Any help will be appreciated. Thanks Vein __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com From fredrik@pythonware.com Wed Mar 19 13:02:53 2003 From: fredrik@pythonware.com (Fredrik Lundh) Date: Wed, 19 Mar 2003 14:02:53 +0100 Subject: [Image-SIG] Re: compiling _imaging.pyd on win32 References: <3E704CDD.2030708@ipm.fhg.de> Message-ID: Markus von Ehr wrote: > The delivered Makefile.win only builds the .lib and not the dll. > I opened a new win32 dll project with vc5.0, but when linking it > claims that there are double definitions (_getenv, _free, _calloc, > _malloc,_sprintf,_fprintf, _exit) > > LINK : warning LNK4098: Standardbibliothek "MSVCRTD" steht in Konflikt > mit anderen Bibliotheken; /NODEFAULT:Bibliothek verwenden > LINK : warning LNK4098: Standardbibliothek "MSVCRT" steht in Konflikt > mit anderen Bibliotheken; /NODEFAULT:Bibliothek verwenden looks like you're linking the _imaging DLL with the wrong linking options; you must use the same "/M" option for both libraries (usually /MD). > Anybody has a makefile for use with nmake building the dll or the > vc5.0 project? It seems to me that several people have done it > succesfully. as of 1.1.3, > python setup.py build should do the trick (assuming you've built the libImaging library). From imagesig@aut.mailshell.com Wed Mar 26 10:11:45 2003 From: imagesig@aut.mailshell.com (aut imagesig) Date: Wed, 26 Mar 2003 02:11:45 -0800 Subject: [Image-SIG] Image.open doesn't close file before raising IOError "cannot identify image file" Message-ID: <1048673505.3e817ce1445d8@www.mailshell.com> Hello, If Image.open raises an IOError ("cannot identify image file"), it doesn't close the file. For my own use I've added fp.close( ) just before the error is thrown (Line 1507). Don't know if that's the best way, or if there might be any unforseen consequence. Seems to fix my specific problem; I am trying to delete the image immediately if it isn't identified: try: im = Image.open(filename) except IOError: os.remove(filename) Everything else works great! Thanks, aut From jmcphers@csc.com Thu Mar 27 00:38:05 2003 From: jmcphers@csc.com (John McPherson) Date: Wed, 26 Mar 2003 19:38:05 -0500 Subject: [Image-SIG] email to Doug Zongker Message-ID: Could you please forward this to Doug Zongker? My mail router fails the address dzongker@sourceforge.net, and it is important that I get ahold of Doug. Hello, my name is John McPherson. I work for Computer Sciences Corporation, on a contract with the INS. The code I work on is involved with Homeland Security, so there is a lot of pressure on our group right now. I downloaded from the Web your imgtops source code, and I am attempting to integrate it into a Windows dll. I have a few questions that I hope you will be able to answer. 1) I have installed python and python_imaging on my machine. The Readme file for python_imaging says to build a dll that will be called _imaging.dll, but when I compile and link my dll that includes your source code, I see a message that your code is trying to reference python22.lib, not _imaging.lib. When I build the python dll for your code, do I include all the C files in the Imaging-1.1.2 directory and the libImaging directory as the python ReadMe says, or do I build the dll/lib files differently, and what name do I use? 2) Since your source code is to be incorporated in a Windows dll, what should I include in the dll beside encoders.c? It looks like the imgtops.py file is the driver "function" for your code, so do I need to include it and convert it to C? I will be calling the imgtops conversion from another function within the same dll, so however I build it, it will have to be accessible via a C function call. 3) The application I am working on will be run only on Windows machines, so do I need the ASCII85 function, or can I comment it out? My dll currently has another function that is named ASCII85Encode, so it is causing conflicts during compiling. 4) When I compile the code, I get a warning that the math.h file in Visual Studio itself has a redefinition. This happened after I added all of the python include files. The warning specifically refered to _CRTIMP double _cdecl atof. Should I change one of the python .h files, or ignore the warning? If you can help me resolve these issues, I would greatly appreciate it. Either email me or call me at 202-824-7597. Thanks for putting your software on the Web, it will be very useful. From korg@darkqueen.org Sat Mar 29 15:14:19 2003 From: korg@darkqueen.org (Cameron Blackwood) Date: Sun, 30 Mar 2003 02:14:19 +1100 Subject: [Image-SIG] Misc observations.... Message-ID: <200303291514.h2TFEJ908230@firewall.darkqueen.org> Image.getbbox ------------- Is there any reason why getbbox is: getbbox() ==> tuple and not: getbbox( [color] ) ==> tuple where color defaults to palette[0] for 8bit images and (0,0,0) for rgb. It doesnt look that hard to add to the code, but I thought Id check before actually coding it. (For my use, speed isnt important, so I just wrote it using image.getpixel, but it struck me that this would be a useful modification for people who have background colors other than black.) ImageDraw --------- Giving that working out the actual colors seems to be secret hacker knowledge (I guess it had to be RGB or BGR so its not that secret ;), but why not have a method like color32(r,g,b) that returned the 'magic int' that is needed for 32 bit colors? Ie: draw.line( ((10,10),(200,200)), fill=draw.color_rgb(200,10,50) ) is neater than: draw.line( ((10,10),(200,200)), fill=(b<<16)+(g<<8)+r ) (unless Im missing some obvious way to do it). I guess one could even have methods for 8 bit images such as: draw.color_rgb(r,g,b) # allocate a new color palette draw.color_find(r,g,b) # search for something near r,g,b in palette Maybe I havnt played with 8bit pics enough, but palette management seems to be less than easy. still on palettes ----------------- I notice that anthony baxter, wrote back in 1996 about not being able to set palettes... http://aspn.activestate.com/ASPN/Mail/Message/image-sig/582262 Nothing ever came of that? Changing palette colors seems to be either well hidden or left up to the user. Its easy to write code to manipulate the palette string, but it just seems that everyone must be writing the same code over and over. I would have thought wanting to go: image_8_bit.palette[10]=(r,g,b) would be something that lots of people would have wanted to do before. Other than having to write test code to work out what magic color int's are etc, PIL seems pretty useful (and happy to load and butcher my povray images :). cheers, cam -- / `Rev Dr' cameron.blackwood@darkqueen.org Roleplaying, virtual goth \ < http://darkqueen.org Poly, *nix, Python, C/C++, genetics, ATM > \ [+61 3] 9809 1523[h] skeptic, Evil GM(tm). Sysadmin for hire / ---------- Random Quote ---------- Maturity is only a short break in adolescence. -- Jules Feiffer From rappold@geog.fu-berlin.de Sat Mar 29 17:25:26 2003 From: rappold@geog.fu-berlin.de (gerhard) Date: Sat, 29 Mar 2003 18:25:26 +0100 Subject: [Image-SIG] read MrSID References: <20030329170003.32705.99329.Mailman@mail.python.org> Message-ID: <3E85D706.A1F25553@geog.fu-berlin.de> Hi all, Is there a way to read (and write) the MrSID format with python/PIL or are there plans to try this? for the format see: http://www.lizardtech.com/solutions/geospatial/ Cheers Gerhard -- _________________________________________________________ Gerhard Rappold Institute for Geographical Science Free University Berlin phone +49 (0) 30 788 95-277 _________________________________________________________