From SUPPORT at BACKGROUNDINVESTIGATION.US Tue Jun 1 04:41:11 2004 From: SUPPORT at BACKGROUNDINVESTIGATION.US (SUPPORT@BACKGROUNDINVESTIGATION.US) Date: Tue Jun 1 03:41:30 2004 Subject: [Image-SIG] Someone is researching: image-sig@python.org Message-ID: ****NOT COMMERCIAL EMAIL**** A user is looking into your background via our website. Someone who knows you just began to research your background at our website. This person could be a friend, a family member, co-worker, business associate, or anyone else who knows you and wants to know more. The power of word-of-mouth in our world is unquestioned. If a friend gives "two thumbs up" for a movie, the chances are that we will go watch it in the theater or rent it on DVD. A food critic who recommends a restaurant in his newspaper column will be a main driver of traffic of wannabe connoisseurs to that establishment. Whether it is to find a good dry cleaner, or a good lawyer, there is no more valuable recommendation than one from a person who has lived through that experience before. To view all of the postings at our website regarding this email address use this link: http://g.womrc.us/sel.php?a=search&b=5&c=image-sig%40python.org The different types of word-of-mouth information facilitated throgh our community range anywhere between extremely positive endorsements to cautionary tales. To add this email address to our Do Not Email List - http://e.womr.biz/sel.php?a=donotemail&b=image-sig%40python.org Once you have searched for connections at our site a few times you will understand that it is something you will want to do regularly. A Connection could be submitted about you or someone interesting to you at anytime. Most users want to learn immediately when interesting connections have been submitted, so we developed Daily Automatic New Connection Searching. A Daily Automatic New Connection Search is like a manual search except that it occurs automatically every day. After the search completes our system sends you an automatic email to confirm that the search has been performed. If any search results are found a link will be included in the email for your convenience. You can change the searches you want our system to perform through our automatic searching page. These searches occur daly and only search through connections that have been submitted since the last automatic search. Sincerely, WOMR Support Department From bali at dkrz.de Tue Jun 1 05:29:30 2004 From: bali at dkrz.de (Manik Bali) Date: Tue Jun 1 05:29:42 2004 Subject: [Image-SIG] Re: Histogram In-Reply-To: Message-ID: Hi The problem that i am facing now is the followng.. I have an image that has pixel values that range from 0 to 23 But when I take a peice( subset ) of this image interior=im.crop((2890,79851,473,3202)) and give interior.getextrema() it shows that the interior has values from (0,255). interior is supposed to be a subset of the original image how does it have more pixel values than 0 to 23. Can you please help Manik From kramm at quiss.org Tue Jun 1 12:07:50 2004 From: kramm at quiss.org (Matthias Kramm) Date: Tue Jun 1 12:01:50 2004 Subject: [Image-SIG] (patch) move definition of ImagingObject to Imaging.h Message-ID: <20040601160750.GA14807@quiss.org> Hi All, I'm currently in the process of writing a C Python extension which is (among others) able to generate SWF h.263 movies from pictures supplied by Imaging. (Some first crude examples (together with source) are at the bottom of http://www.quiss.org/swftools/examples.html ) The problem I was having was that I need to know the definition of ImagingObject in my extension C code- otherwise I can't process the Imaging pictures my functions are called with- the relevant ImagingObject isn't yet defined in the Imaging.h include file. It seems Scencil (former Sketch) has the same problem. What I now did (patch is attached) is to move ImagingObject to Imaging.h, together with Imaging_Type to also allow for type checks in my extension code. The relevant piece of code is surrounded with an #ifdef Py_PYTHON_H, because it's the only Python-specific code, so the defines should only be executed if the Python headers are included, too. It would be great if this patch could make it into the official Imaging distribution. Greetings Matthias -------------- next part -------------- --- _imaging.c.bak 2003-04-26 13:50:24.000000000 +0200 +++ _imaging.c 2004-06-01 17:45:27.000000000 +0200 @@ -99,13 +99,6 @@ /* OBJECT ADMINISTRATION */ /* -------------------------------------------------------------------- */ -typedef struct { - PyObject_HEAD - Imaging image; -} ImagingObject; - -staticforward PyTypeObject Imaging_Type; - #ifdef WITH_IMAGEDRAW typedef struct @@ -2599,7 +2592,7 @@ /* type description */ -statichere PyTypeObject Imaging_Type = { +PyTypeObject Imaging_Type = { PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ "ImagingCore", /*tp_name*/ --- libImaging/Imaging.h.bak 2004-06-01 17:42:16.000000000 +0200 +++ libImaging/Imaging.h 2004-06-01 17:47:47.000000000 +0200 @@ -62,6 +62,17 @@ typedef struct ImagingOutlineInstance* ImagingOutline; typedef struct ImagingPaletteInstance* ImagingPalette; +/* Python Object Definition */ + +#ifdef Py_PYTHON_H +typedef struct { + PyObject_HEAD + Imaging image; +} ImagingObject; + +extern PyTypeObject Imaging_Type; +#endif + /* pixel types */ #define IMAGING_TYPE_UINT8 0 #define IMAGING_TYPE_INT32 1 From ANGRSAArhfdri at yahoo.com Tue Jun 1 13:13:11 2004 From: ANGRSAArhfdri at yahoo.com (ANGRSAArhfdri@yahoo.com) Date: Tue Jun 1 12:13:40 2004 Subject: [Image-SIG] Fw: $ $ $ a l e ! Message-ID: <79736633483735.72268.qmail@web09595.mail.yahoo.com> P h a m a c y $ a l e ! http://stromss.com/tp/default.asp?id=sx01 vicky knoll cotton profusion kristin lowland compile garter stealthy hemlock washbowl hockey ----9-673264921-6800585061=:4133-- From fredrik at pythonware.com Wed Jun 2 12:07:28 2004 From: fredrik at pythonware.com (Fredrik Lundh) Date: Wed Jun 2 12:07:44 2004 Subject: [Image-SIG] Re: (patch) move definition of ImagingObject to Imaging.h References: <20040601160750.GA14807@quiss.org> Message-ID: Matthias Kramm wrote: > I'm currently in the process of writing a C Python extension > which is (among others) able to generate SWF h.263 movies from pictures > supplied by Imaging. > (Some first crude examples (together with source) are at the bottom of > http://www.quiss.org/swftools/examples.html > ) > > The problem I was having was that I need to know the definition > of ImagingObject in my extension C code- otherwise I can't process the > Imaging pictures my functions are called with- the relevant > ImagingObject isn't yet defined in the Imaging.h include file. > It seems Scencil (former Sketch) has the same problem. the "official" way to access the Imaging structure is to use a Python wrapper and the "id" attribute, as discussed here: http://www.effbot.org/zone/pil-extending.htm (this works with all PIL versions since 1996 or so) > It would be great if this patch could make it into the official > Imaging distribution. I'm pretty sure it's done the way it is for a reason, but I don't remember what it was. if I cannot figure out it, chances are that this (or something very similar) will be in 1.1.5. From bali at dkrz.de Wed Jun 2 15:55:07 2004 From: bali at dkrz.de (Manik Bali) Date: Wed Jun 2 15:55:15 2004 Subject: [Image-SIG] Problem using crop. Message-ID: Hi The problem that i am facing now is the followng.. I have an image that has pixel values that range from 0 to 23 But when I take a peice( subset ) of this image interior=im.crop((2890,79851,473,3202)) and give interior.getextrema() it shows that the interior has values from (0,255). interior is supposed to be a subset of the original image how does it have more pixel values than 0 to 23. The list(im.getdata()) shows a list of 256 non zero elements Can you please help Manik From fredrik at pythonware.com Wed Jun 2 16:31:16 2004 From: fredrik at pythonware.com (Fredrik Lundh) Date: Wed Jun 2 16:31:31 2004 Subject: [Image-SIG] Re: Problem using crop. References: Message-ID: Manik Bali wrote: > I have an image that has pixel values that range from 0 to 23 > But when I take a peice( subset ) of this image > interior=im.crop((2890,79851,473,3202)) have you checked interior.size ? the syntax is (left, top, right, bottom) -- the box you're using has negative size. > and give interior.getextrema() it shows that the interior has values from > (0,255). interior is supposed to be a subset of the original image how > does it have more pixel values than 0 to 23. > The list(im.getdata()) shows a list of 256 non zero elements the behaviour for negative crop sizes appears to be undefined (when testing this, I just managed to crash Python...). From anthony at interlink.com.au Thu Jun 3 05:15:59 2004 From: anthony at interlink.com.au (Anthony Baxter) Date: Thu Jun 3 05:16:49 2004 Subject: [Image-SIG] finding truetype fonts Message-ID: <40BEEC4F.8010203@interlink.com.au> At the moment the Imaging extension requires you to specify a filename for the truetype font. I wrote a small piece of code for pygame (which was put into pygame in a different form) that allowed you to look up fonts by name. It works on Windows (tested on WinXP) and Unix. It relies on no pygame-specific APIs. http://www.interlink.com.au/anthony/tech/xlibconf.py/ Could something like this find it's way into PIL? -- Anthony Baxter It's never too late to have a happy childhood. From Chris.Barker at noaa.gov Thu Jun 3 14:00:00 2004 From: Chris.Barker at noaa.gov (Chris Barker) Date: Thu Jun 3 14:01:00 2004 Subject: [Image-SIG] massrotate in python In-Reply-To: <20040521154933.GA2126%alexy.khrabrov@setup.org> References: <20040521154933.GA2126%alexy.khrabrov@setup.org> Message-ID: <40BF6720.2030609@noaa.gov> Alexy Khrabrov wrote: > Greetings -- I'm faced with the simplest task any digital photographer > needs: rotate vertical jpegs. There's a program, jpegtran, to do it > losslessly, and with -copy all it also preserves EXIF data. So I want > to use it instead of lossy rotations in xv, ImageMagick, and the like. I have exactly the same need, and I've found a simple solution. I wrote a simple python script that uses os.system to call jpegtran to rotate an image. (actually I have two, one that rotates clockwise one anti-clockwise). I put these into /usr/local/bin. I use KDE, so I can use konquorer to view a directory that has images in it, and thumbnails are displayed. I have associated the above scripts with *.jpeg files, so if I right click on an image, I can click the open-with menu, and get a list of apps, including my two rotating scripts. It works great. By the way, I've also got a script that crops an image (using jpegcrop) to a 4X6 aspect ratio and sends it off to the printer. My long term plan is to add this functionality (and others) to Cornice, a wxPython image viewer, but I haven't gotten around to that yet. http://web.tiscali.it/agriggio/cornice.html It appears you've had problems with wxPython--what system are you running, I'm a big fan of wxPython, it should work for you. That's OT for this list, though. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker@noaa.gov From IBTQZIJfxoofw at yahoo.com Thu Jun 3 23:57:36 2004 From: IBTQZIJfxoofw at yahoo.com (IBTQZIJfxoofw@yahoo.com) Date: Thu Jun 3 23:01:08 2004 Subject: [Image-SIG] $ a v e Y o u r M o n e y ! Message-ID: <21702660532145.54027.qmail@web37772.mail.yahoo.com> P h a m a c y W h o l e $ a l e ! http://aqmedsa.com/tp/default.asp?id=sx01 cybernetic granddaughter cable astm x delineament perennial spleen professional kelly tilt ingenious interpolate consonantal amble wilmington botfly centric navy coulomb spill ----7-322609039-4260146796=:5134-- From kramm at quiss.org Fri Jun 4 10:25:06 2004 From: kramm at quiss.org (Matthias Kramm) Date: Fri Jun 4 10:22:52 2004 Subject: [Image-SIG] Re: (patch) move definition of ImagingObject to Imaging.h In-Reply-To: References: <20040601160750.GA14807@quiss.org> Message-ID: <20040604142506.GA1067@quiss.org> On Wed, Jun 02, 2004 at 06:07:28PM +0200, Fredrik Lundh wrote: > the "official" way to access the Imaging structure is to use a Python > wrapper and the "id" attribute, as discussed here: > > http://www.effbot.org/zone/pil-extending.htm > > (this works with all PIL versions since 1996 or so) Yes, I saw that in _imagingft.c, just after I sent this post. Will this also work on 64-bit architectures? > I'm pretty sure it's done the way it is for a reason, but I don't remember > what it was. if I cannot figure out it, chances are that this (or something > very similar) will be in 1.1.5. I think the existing method is fine, but maybe a comment about this should be added to Imaging.h, so people don't miss it all the time. :) Something like /* Given a python image object img, a pointer to the respective Imaging struct can be aquired by passing img.im.id (an int) to the C extension and casting the int to a pointer to an ImagingMemoryInstance. See http://www.effbot.org/zone/pil-extending.htm */ Greetings Matthias From fredrik at pythonware.com Sat Jun 5 11:28:35 2004 From: fredrik at pythonware.com (Fredrik Lundh) Date: Sat Jun 5 11:28:53 2004 Subject: [Image-SIG] Re: Re: (patch) move definition of ImagingObject toImaging.h References: <20040601160750.GA14807@quiss.org> <20040604142506.GA1067@quiss.org> Message-ID: Matthias Kramm wrote: > > the "official" way to access the Imaging structure is to use a Python > > wrapper and the "id" attribute, as discussed here: > > > > http://www.effbot.org/zone/pil-extending.htm > > > > (this works with all PIL versions since 1996 or so) > > Yes, I saw that in _imagingft.c, just after I sent this post. > Will this also work on 64-bit architectures? as long as you use a long integer, it'll work on all sane 64-bit platforms (LP64, that is). > I think the existing method is fine, but maybe a comment about this > should be added to Imaging.h, so people don't miss it all the time. :) > Something like > > /* Given a python image object img, a pointer to the respective Imaging struct > can be aquired by passing img.im.id (an int) to the C extension and > casting the int to a pointer to an ImagingMemoryInstance. > See http://www.effbot.org/zone/pil-extending.htm > */ that's a good idea. I'll add something to the 1.1.5 release. From fredrik at pythonware.com Sat Jun 5 15:30:25 2004 From: fredrik at pythonware.com (Fredrik Lundh) Date: Sat Jun 5 15:40:25 2004 Subject: [Image-SIG] ANN: PIL 1.1.5 alpha 3 Message-ID: A PIL 1.1.5 alpha 3 tarball is now available from effbot.org: http://effbot.org/downloads (look for Imaging-1.1.5a3.tar.gz) Changes since 1.1.5 alpha 2: + Added 'getim' method, which returns a PyCObject wrapping an Imaging pointer. The description string is set to IMAGING_MAGIC. See Imaging.h for pointer and string declarations. + Fixed reading of TIFF JPEG images (problem reported by Ulrik Svensson). + Made ImageColor work under Python 1.5.2 + Fixed division by zero "equalize" on very small images (from Douglas Bagnall). A list of changes since 1.1.4 can be found here: http://effbot.org/zone/pil-changes-115.htm Report bugs to this list or directly to me, as usual. enjoy /F From acrivano at ig.com.br Sun Jun 6 03:38:42 2004 From: acrivano at ig.com.br (Mammalian S. Spread) Date: Sun Jun 6 04:12:47 2004 Subject: [Image-SIG] Read:_Cheape software - all you can imagine Message-ID: <5807574990.20040606023842@ig.com.br> >Romeo Roger Lindsay Mitchell Julianne Maria Sheryl Bennett Sensation!! We opened a NEW site with unbeatable prices and products. 800 WORLD BEST software with 90% discount - that is a really BEST offer just imagine, you can buy ALL software that you ever need and pay price of just one of it! Office 2003 for 50$ - nice deal right ? ;) retail price is 700$ - great savings, huh? Please spend few moments of yours precious time to check our offer - it is more than worth it! http://Joanna.cheap-oem-license.biz/?Amparo >Fearless minds climb soonest into crowns. >It is an axiom, enforced by all the experience of the ages, that they who rule industrially will rule politically. >Therefore trust to thy heart, and to what the world calls illusions. >One ought to hold on to one's heart for if one lets it go, one soon loses control of the head too. >He who knows only his own side of the case, knows little of that. >Expect the best, plan for the worst, and prepare to be surprised. >There's lots of people who spend so much time watching their health, they haven't got time to enjoy it. >I had ambition not only to go farther than any man had ever been before, but as far as it was possible for a man to go. >We must make the world honest before we can honestly say to our children that honesty is the best policy. >Nothing can be beautiful which is not true. >You are beginning to see that any man to whom you can do favor is your friend, and that you can do a favor to almost anyone. >When you stand at the edge of the cliff, jump to fly, not to fall. >A life of leisure and a life of laziness are two things. There will be sleeping enough in the grave. >The best part of our lives we pass in counting on what is to come. >The love of evil is the root of all money. >We are nearer loving those who hate us than those who love us more than we wish. >We usually get what we anticipate. >Calamity is the test of integrity. >A toddling little girl is a center of common feeling which makes the most dissimilar people understand each other. From BQIURvhlsi at yahoo.com Sun Jun 6 07:05:39 2004 From: BQIURvhlsi at yahoo.com (BQIURvhlsi@yahoo.com) Date: Sun Jun 6 06:08:12 2004 Subject: [Image-SIG] G e n e r i c W h o l e $ a l e ! Message-ID: <43184655657558.94190.qmail@web32217.mail.yahoo.com> W h o l e $ a l e P h a m a c y ! http://mens5ra.com/tp/default.asp?id=sx01 angelica handymen boxy blob eisenhower intoxicant posner respectful berserk assiduity waterloo hitch gu razorback cytosine ----6-982194604-2285027687=:9218-- From pianoblau at gmx.net Sun Jun 6 12:55:55 2004 From: pianoblau at gmx.net (pianoblau@gmx.net) Date: Sun Jun 6 12:56:11 2004 Subject: [Image-SIG] PIL and Stereo Display? Message-ID: Hi there, i want to use PIL for displaying stereo images on a monitor. That means, I have - let's say - two images, which each of them represents the view of one eye. Now I have to switch the monitor output between these two pictures - if I have a vertical frequency of 100 Hz, the first picture represents the left eye picture, second the right eye picture, third the left eye picture again and so on. Each picture is displayed then whith a frequency of 50Hz for each eye. Then I want to syncronize the display with some shutter glasses and this enables the left eye to see the left picture only and vice versa. Is it possible to do this with Python / PIL? I know there are some good stereo viewers on the market but i have to write one for myself as I want to put some features in it that has no other viewer. I hope anyone of you can tell me more ... Regards, Alex pianoblau at gmx.net From anderss at bahner.com Mon Jun 7 22:50:33 2004 From: anderss at bahner.com (anderss@bahner.com) Date: Mon Jun 7 10:59:26 2004 Subject: [Image-SIG] software In-Reply-To: <789BKLGH05HCFH67@python.org> References: <789BKLGH05HCFH67@python.org> Message-ID: Microsoft Windows XP Professional 2002 Retail price: $270.99 Our low Price: $50.00 You Save: $220.00 Adobe Photoshop 7.0 Retail price: $609.99 Our low Price: $60.00 You Save: $550.00 Microsoft Office XP Professional 2002 Retail price: $579.99 Our low Price: $60.00 You Save: $510.00 Adobe Illustrator 10 Retail price: $270.99 Our low Price: $60.00 You Save: $210.00 Corel Draw Graphics Suite 11 Retail price: $270.99 Our low Price: $60.00 You Save: $210.00 Delphi 7 Retail price: $404.99 Our low Price: $60.00 You Save: $335.00 And more!!! Why so cheap? All the software is OEM- Meaning that you don't get the box and the manual with your software. All you will receive is the actual software and your unique registration code. All the software is in the English language for PC. Our offers are unbeatable and we always update our prices to make sure we provide you with the best possible offers. Hurry up and place your order, because our supplies are limited. Our site is http://KLMMCN.info/OE017/?affiliate_id=233763&campaign_id=601 uns * ub - scribe http://NANNEH.biz/diamondtron.php?affiliate_id=233763&campaign_id=601 gptlkour ekjmz aqqygow qjtyj pijdrqi tavu opmucx hbxz twgtrxr kvccf lfyenhfj buan kweiwxf cfyzyjv blb nrzr ggxqtrr whute z rbxyd From ericford at comcast.net Mon Jun 7 14:07:24 2004 From: ericford at comcast.net (Eric Ford) Date: Mon Jun 7 14:07:32 2004 Subject: [Image-SIG] I'm trying to use the Python Imaging Library to draw transparent GIFs onto a TKinter canvas. Message-ID: I'm trying to use the Python Imaging Library to draw transparent GIFs onto a TKinter canvas. Following is some sample code I found, but I'm wondering if there's anything better out there. The image is first split into red green blue and alpha (opacity) channels, then a function is applied to each of the RGB layers which results in a mask. Here is the code fragment that accomplishes this: source = im.split() # split the image into layers R, G, B, A = 0, 1, 2, 3 # for readability mask = im.point(lambda i: i < 255) # kluge source[A].paste(mask) # put mask into the alpha channel im = Image.merge(im.mode, source) # build a new multiband image self.graphic = ImageTk.PhotoImage(image=im) # for eventual retrieval The kluge here is that the point method applies its function to each layer, so instead of inputting a 24 bit color as the transparent color, we only get to specify an 8 bit value. Any pixel having a value of 255 in one of the layers will be treated as transparent. This happens to work fine with the current color choices in the GIF files, but a real solution needs to be found. From Scott.Daniels at Acm.Org Mon Jun 7 10:29:52 2004 From: Scott.Daniels at Acm.Org (Scott David Daniels) Date: Mon Jun 7 17:00:09 2004 Subject: [Image-SIG] Re: PIL and Stereo Display? In-Reply-To: References: Message-ID: pianoblau@gmx.net wrote: > > I want to use PIL for displaying stereo images on a monitor.... with some > shutter glasses .... > > Is it possible to do this with Python / PIL? If PIL doesn't do this currently (and I don't think it does; PIL is about images, not viewing), check with VPython, which (as I vaguely remember) does do so. VPython builds 3-D models to interact with, so the demand there is great for real-time 3-D viewing (it may be an add-on). I think they use Open-GL for most of their rendering, in any case there's likely to be some sample code using Python and shutter glasses. > > Regards, Alex > pianoblau at gmx.net > > > _______________________________________________ > Image-SIG maillist - Image-SIG@python.org > http://mail.python.org/mailman/listinfo/image-sig > -- -- Scott David Daniels Scott.Daniels@Acm.Org From wxendXJADKUZ at yahoo.com Tue Jun 8 04:22:14 2004 From: wxendXJADKUZ at yahoo.com (wxendXJADKUZ@yahoo.com) Date: Tue Jun 8 03:20:46 2004 Subject: [Image-SIG] W h o l e $ a l e P h a m a c y ! Message-ID: <07721451600522.87314.qmail@web14269.mail.yahoo.com> G e n e r i c W h o l e $ a l e ! http://awmedxe.com/tp/default.asp?id=sx01 athenian diversify cup cantle insulate epitaph woody jogging thrum transposable From kiuorgtXFNUOSE at yahoo.com Tue Jun 8 14:36:43 2004 From: kiuorgtXFNUOSE at yahoo.com (Serrano Marie) Date: Tue Jun 8 10:36:41 2004 Subject: [Image-SIG] Re: P h a r m a c y $ a l e ! tmRQ Message-ID: <37258713991992.96959.qmail@web96623.mail.yahoo.com> W h o l e $ a l e P h a r m a c y ! http://nase4as.com/tp/default.asp?id=sx01 night lackluster resemblant unilateral cowherd araby windshield shaggy accuracy admitted applied singe sarcastic arsenate carlson memory sicken taxicab proust basel clipboard accumulate rembrandt vaughn wilshire northrop shepherd easternmost mucus brainwash gm From mr_shepherdwi at bib.csic.es Wed Jun 9 02:32:55 2004 From: mr_shepherdwi at bib.csic.es (Maura R. Shepherd) Date: Wed Jun 9 02:27:30 2004 Subject: [Image-SIG] Powerful weightloss now available for you. Message-ID: Hello, I have a special_offer for you... WANT TO LOSE WEIGHT? The most powerful weightloss is now available without prescription. All natural Adipren720 100% Money Back Guarant?e! - Lose up to 19% Total Body Weight. - Up to 300% more Weight Loss while dieting. - Loss of 20-35% abdominal Fat. - Reduction of 40-70% overall Fat under skin. - Increase metabolic rate by 76.9% without Exercise. - Boost your Confidence level and Self Esteem. - Burns calorized fat. - Suppresses appetite for sugar. Get the facts about all-natural Adipren720 ---- system information ---- zones segments need individuals disclose widely interoperate able What throughly hidden Content-Language Chinese similar-looking resource design provider) cultures parameter goal graphics management inherent Scenarios [Web When formats parameter Task usable working javautilLocale applications standard script behaviors need mailing checking Use From general at eepatents.com Wed Jun 9 02:34:35 2004 From: general at eepatents.com (Ed Suominen) Date: Wed Jun 9 02:34:42 2004 Subject: [Image-SIG] Spam on list In-Reply-To: References: Message-ID: <200406082334.35186.general@eepatents.com> Image-SIG is the only mailing list from which I get any significant spam. Isn't there any filtering in place? From piers at cs.su.oz.au Wed Jun 9 20:14:56 2004 From: piers at cs.su.oz.au (Piers Lauder) Date: Wed Jun 9 20:23:49 2004 Subject: [Image-SIG] Imaging-1.1.5a3 Message-ID: Hi, I have a build problem on MandrakeLinux 10.0. I get the following when executing "python setup.py build_ext -i" after building in libImaging: ... building '_imagingft' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -IlibImaging -I/usr/include/freetype2 -I/usr/local/include/python2.3 -c _imagingft.c -o build/temp.linux-i686-2.3/_imagingft.o In file included from _imagingft.c:20: /usr/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!" /usr/include/freetype2/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files." /usr/include/freetype2/freetype/freetype.h:22:2: #error "Example:" /usr/include/freetype2/freetype/freetype.h:23:2: #error " #include " /usr/include/freetype2/freetype/freetype.h:24:2: #error " #include FT_FREETYPE_H" error: command 'gcc' failed with exit status 1 From piers at cs.su.oz.au Wed Jun 9 20:30:26 2004 From: piers at cs.su.oz.au (Piers Lauder) Date: Wed Jun 9 20:35:10 2004 Subject: [Image-SIG] Imaging-1.1.5a3 Message-ID: (Apologies for the double post - hit send too soon). I have a build problem on MandrakeLinux 10.0. I get the following when executing "python setup.py build_ext -i" after building in libImaging: ... building '_imagingft' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -IlibImaging -I/usr/include/freetype2 -I/usr/local/include/python2.3 -c _imagingft.c -o build/temp.linux-i686-2.3/_imagingft.o In file included from _imagingft.c:20: /usr/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!" /usr/include/freetype2/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files." /usr/include/freetype2/freetype/freetype.h:22:2: #error "Example:" /usr/include/freetype2/freetype/freetype.h:23:2: #error " #include " /usr/include/freetype2/freetype/freetype.h:24:2: #error " #include FT_FREETYPE_H" error: command 'gcc' failed with exit status 1 This might be a bug in the Mandrake build for freetype2, but just in case it isn't - it is fixed by putting: #include just before the "#include " in _imagingft.c. From tdc at phreaker.net Thu Jun 10 10:40:02 2004 From: tdc at phreaker.net (tdc) Date: Thu Jun 10 10:55:25 2004 Subject: [Image-SIG] GIMP-like Sobel filter? Message-ID: <40C872C2.8090408@phreaker.net> Hi, I'm trying to make some automated image processing using PIL. My goal is to locate largest blocks of JPEG encoding artifacts in source image. I've made some prototyping in GIMP, but I'm unable to mimics these in PIL. Examples are at http://www.webprostor.cz/media/tdc/ I'm looking for some (fast) way to get results displayed in Step #3. Localization of largest "blob" of black is the next step, but first steps first :) Any ideas? _tdc_ From sanders_n at yahoo.com Thu Jun 10 13:32:22 2004 From: sanders_n at yahoo.com (Nathan Sanders) Date: Thu Jun 10 13:32:27 2004 Subject: [Image-SIG] Possible setup.py bug Message-ID: <000501c44f10$e5a6ee50$0500a8c0@w00dkrvr> I believe I have found a bug in setup.py for a Linux (or POSIX in general) install. If you don't have Tk installed, but do have FreeType, the variables EXTRA_COMPILE_ARGS and EXTRA_LINK_ARGS are used in line 287 and 288, but are only bound in the else branch of the try on line 127 that depends on having Tk installed. My workaround was to move the lines (128-129) EXTRA_COMPILE_ARGS = None EXTRA_LINK_ARGS = None to just above the try at lines (121-122) (Sorry, I'm too new to Unix to know how to produce a diff or patch. Instruction would be welcome if necessary.) I'm using Python 2.3.3, PIL 1.1.4, both compiled from source. My Linux distro is gentoo--something recent, that installs Python without Tk. --Nathan Sanders From general at eepatents.com Thu Jun 10 13:42:29 2004 From: general at eepatents.com (Ed Suominen) Date: Thu Jun 10 13:42:33 2004 Subject: [Image-SIG] Possible setup.py bug In-Reply-To: <000501c44f10$e5a6ee50$0500a8c0@w00dkrvr> References: <000501c44f10$e5a6ee50$0500a8c0@w00dkrvr> Message-ID: <200406101042.29286.general@eepatents.com> Nathan, you might have better luck using Gentoo's version of PIL: emerge dev-python/Imaging Welcome to Linux! You'll be amazed at what you can do with it. On Thursday 10 June 2004 10:32 am, Nathan Sanders wrote: > I believe I have found a bug in setup.py for a Linux (or POSIX in general) > install. > If you don't have Tk installed, but do have FreeType, the variables > EXTRA_COMPILE_ARGS and EXTRA_LINK_ARGS are used in line 287 and 288, but > are only bound in the else branch of the try on line 127 that depends on > having > Tk installed. My workaround was to move the lines > (128-129) > EXTRA_COMPILE_ARGS = None > EXTRA_LINK_ARGS = None > to just above the try at lines (121-122) > > (Sorry, I'm too new to Unix to know how to produce a diff or patch. > Instruction would be welcome if necessary.) > I'm using Python 2.3.3, PIL 1.1.4, both compiled from source. > My Linux distro is gentoo--something recent, > that installs Python without Tk. > > --Nathan Sanders > > > _______________________________________________ > Image-SIG maillist - Image-SIG@python.org > http://mail.python.org/mailman/listinfo/image-sig From fredrik at pythonware.com Thu Jun 10 17:37:13 2004 From: fredrik at pythonware.com (Fredrik Lundh) Date: Thu Jun 10 17:36:16 2004 Subject: [Image-SIG] Re: Possible setup.py bug References: <000501c44f10$e5a6ee50$0500a8c0@w00dkrvr> Message-ID: Nathan Sanders wrote: > If you don't have Tk installed, but do have FreeType, the variables > EXTRA_COMPILE_ARGS and EXTRA_LINK_ARGS are used in line 287 and 288, but > are only bound in the else branch of the try on line 127 that depends on > having Tk installed. footnote: googling for the error message would have brought you to this page, which includes a patch: http://effbot.org/zone/pil-errata-114.htm#pil124 From cwzjiqOJPDO at yahoo.com Fri Jun 11 05:38:45 2004 From: cwzjiqOJPDO at yahoo.com (cwzjiqOJPDO@yahoo.com) Date: Fri Jun 11 04:36:20 2004 Subject: [Image-SIG] W h o l e $ a l e ! Message-ID: <64170645151527.85564.qmail@web01169.mail.yahoo.com> P h a m a c y W h o l e $ a l e ! http://233amnbesa.com/tp/default.asp?id=sx01 taxpayer reconcile brillouin carrageen booze feet heartbeat eigenstate nasty obtrusive anyplace dacca malnourished rheology venial armhole quadrille argillaceous From janssen at parc.com Sat Jun 12 03:20:39 2004 From: janssen at parc.com (Bill Janssen) Date: Sat Jun 12 03:20:58 2004 Subject: [Image-SIG] GIMP-like Sobel filter? In-Reply-To: Your message of "Thu, 10 Jun 2004 07:40:02 PDT." <40C872C2.8090408@phreaker.net> Message-ID: <04Jun12.002042pdt."58612"@synergy1.parc.xerox.com> Try using Gamera, http://dkc.mse.jhu.edu/gamera/, a Python framework for document page analysis. Bill From mcchouse at erols.com Sun Jun 13 08:28:24 2004 From: mcchouse at erols.com (Mcchouse) Date: Sun Jun 13 08:28:23 2004 Subject: [Image-SIG] IndispensableSoftWare on cd... needy? seeBody In-Reply-To: References: Message-ID: <9A826D2AC248EE12@erols.com> Image-sig http://FGMKHJ.info/OE017/?affiliate_id=233642&campaign_id=601 http://BFECEF.biz/OE017/?affiliate_id=233642&campaign_id=601 Bye-bye From roy at 3mb.co.nz Sun Jun 13 20:54:34 2004 From: roy at 3mb.co.nz (roy) Date: Sun Jun 13 20:41:40 2004 Subject: [Image-SIG] formatting img Message-ID: <200406141254.34127.roy@3mb.co.nz> Hi. I'm very new to PIL, so my apology for a very simple question. The input image can be in a variety of formats. I need to convert the input image to a jpg format. how do I do that please? Thanks a lot Roy From fredrik at pythonware.com Mon Jun 14 04:14:32 2004 From: fredrik at pythonware.com (Fredrik Lundh) Date: Mon Jun 14 04:14:42 2004 Subject: [Image-SIG] Re: formatting img References: <200406141254.34127.roy@3mb.co.nz> Message-ID: "roy" wrote: . > I'm very new to PIL, so my apology for a very simple question. > The input image can be in a variety of formats. > I need to convert the input image to a jpg format. > how do I do that please? the first example in the tutorial is called "Convert files to JPEG": http://www.pythonware.com/library/pil/handbook/introduction.htm From HOGTfpeoCFEL at yahoo.com Tue Jun 15 20:54:01 2004 From: HOGTfpeoCFEL at yahoo.com (Strickland Velma) Date: Tue Jun 15 19:56:38 2004 Subject: [Image-SIG] Fw: W h o l e $ a l e ! Message-ID: <01866541327559.48753.qmail@web27175.mail.yahoo.com> G e n e r i c W h o l e $ a l e ! http://phanmrmsd.com/tp/default.asp?id=sx01 lubell glasswort swallow pair australia mightn't spasm percentage genealogy revive miguel cheerlead risk jewel vagabond casino sian kent portuguese adjective emigrate grime ibis bowmen destruct fayetteville minsk loft blank finnegan spoken poynting contraband resolve mineralogy rilly artemis precision arachne bushnell From fredrik at pythonware.com Wed Jun 16 14:28:32 2004 From: fredrik at pythonware.com (Fredrik Lundh) Date: Wed Jun 16 14:46:01 2004 Subject: [Image-SIG] Re: PIL 1.1.5 alpha 3 References: Message-ID: > A PIL 1.1.5 alpha 3 tarball is now available from effbot.org: > > http://effbot.org/downloads > > (look for Imaging-1.1.5a3.tar.gz) windows binaries for Python 2.3 are now available from: http://effbot.org/downloads/#PIL (the windows installer is labelled 1.1.5a4, but the changes since 1.1.5a3 are all related to build issues, so non-windows users are not really missing anything...) From fox_ht at kwak.dk Fri Jun 18 20:36:16 2004 From: fox_ht at kwak.dk (Glen Fox) Date: Sun Jun 20 23:45:32 2004 Subject: [Image-SIG] Powerful weightloss now available where you are. Message-ID: Hello, I have a special offer for you... WANT TO LOSE WEIGHT? The most powerful weightloss is now available without prescription. All natural Adipren720 100% Money Back Guarant?e! - Lose up to 19% Total Body Weight. - Loss of 20-35% abdominal Fat. - Up to 300% more Weight Loss while dieting. - Increase metabolic rate by 76.9% without Exercise. - Reduction of 40-70% overall Fat under skin. - Suppresses appetite for sugar. - Burns calorized fat. - Boost your Confidence level and Self Esteem. Get the facts about all-natural Adipren720 ---- system information ---- shorthand Shorthand Force systems different default Different read implement interested Alternate able be widely provide writes Membership submitted known Identifiers:: attribute more-specific sounds contribute different working nearly version correctly remote expectations selection correlate B: host use send contribute linguistic C: From wrnpqlup at walkonthewildside.org Fri Jun 18 11:09:49 2004 From: wrnpqlup at walkonthewildside.org (Karen Echols) Date: Sun Jun 20 23:56:28 2004 Subject: [Image-SIG] Discount business oem software retailer extradite Message-ID: An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/image-sig/attachments/20040618/a0217fab/attachment.html From image-sig at claytonbrown.net Wed Jun 16 10:59:16 2004 From: image-sig at claytonbrown.net (image-sig@claytonbrown.net) Date: Mon Jun 21 00:15:54 2004 Subject: [Image-SIG] Package/Module/Recipe Versioning, Aggregation and Distrobution Message-ID: I have been developing a bootstrap loader to enable module/package & python interpretor versioning/specification at time of import within a script. This is primarily to encourage code re-use/portablility (satisfying dependancies on multiple machines & platforms), and allow revision control and coexistence of packages, a particular weak point of python in my experience (I could be just doing things wrong). I am interested now in how such versioned packages could be agregated and made avaliable through a centralised service such as PyPi/CPAN, and as to wether such functionality described below will be a spanner in the works for distrobution techniques. ---------my actual question ------------------ To people familiar with distrobuting python projects, and associated tools, eg (py2exe, disutils, PyPi, freeze, etc) Which is not my string point in python, is this going to cause headaches with the way the afore mentioned tools work. Can this below mentioned versioning/package retrieval/recipe retrieval be easily integrated with a CPAN like service such as PyPi & http://python.org/peps/pep-0273.html in a logical manner, allowing platform specific, versioned packages to be agregated and made available automagically at time of import, or through some form of dependancy checker. ------------------------------------ -----functionality------------ This is similar to a technique seen in PythonMegaWidgets and a discussion I found of David Aschers on versioning. I have made my intial version of this avaliable on aspn. This is comprised of two parts, versioner.py & version_loader.py (http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/285215), versioner walks a site-packages tree identifying folder structures where versioned packages occur, and distrobutes version_loader.py as __init__.py in the parent folder of this versioned packages, it also creates empty placeholder __init__.py's & autoloaders (from foldername import * - where script name = folder name and no __init__.py exists ) so that you can automagically have "from package.folder.folder.script import method, etc ,etc" Admittedly Mark Hammonds win32, win32com, etc, didn't work at first inspection but I am happy for such packages to remain locally with site-packages as these are not cross platform packages anyhow, however all other packages I have migrated to my versioned site packages directory have played nicely in tests made. (for example: bsddb3, ClientCookie, DCOracle2, Ft, id3, log4py, logging, mx, OpenSSL, PIL, psyco, psyco2, PythonMagick, soaplib, wxPython, xmlplus ) With the manual hack of dragging any built binaries (.so, .dll, .pyd, etc) for said package from DLLS,etc into versioned package folder (OK when this is dpendant on system services eg MySqld, BerkleyDB, etc this could get difficult). The impact on python syntax for this is minimal with local variables such as: _foo_version_ = '1.2.3.4' #where point depth is level of compatibility required import foo Optionally. _python_version_ = '2.2.2' #again point depth is variable I further intend to remove all of the pollution this make of local namespace once the import has been performed. And have not gone through extensive testing nor bug fixes as yet, but all seems to work quite nicely. Ultimately I would love an extension to the python core syntax along the lines of: import foo version 2.3.4.5 (with inate platform inspection suffixing on package name)#to give the behaviour I have implements I thought I had seen a PEP on this though cant seem to find this. ------------------------------------ ------------extension to this------------ Ultimately I would like to achieve a CPAN like web retrieval of versioned packages/scripts which are referenced yet not available, though doing this at time of import perhaps if local variable is declared: e.g. _PyPi_download_ = 1, where if a version is specified it will retrieve that version else defaulting to latest. I would like to extend this with recipes as well, Eg. import recipe.aspn_python.stringutil.md5hash as md5hash import recipe.parnassus.stringutil.utf8escape as ut8esc import recipe.claysstuff.stringutil.utf8unescape as ut8unesc Where one could register a base foldername, and their lookup service with a central weblookup services which fires a search for a packge/module/scriptname which returns standardised xml results, to allow retrieval of the said package, storing it in the path you have nominated for versioned-packages/recipes (perhaps in site.py), perhaps even allowing syntax to import all packages from source/category/subcategory/etc eg aspn_python.category.* Having PyPi agregate packages (perhaps with unit tests also) and mirror seems logical, bundling all immediate depandancies within a single archive also seems logical. Having packages also nominate dependancies could be a huge benifit: Eg. requires['package'] = '1.2.3' Or standard dependancies.xml in base folder of package, ok this may be simplistic, modelling dependancies is a whole separate issue but for example libpthread.so.0 #using ldd #using locate(if present) | binaryName -v [perhaps this is a little flimsy] #for private packages #uses Pypi to get search service to locate/download package ------------------------------------ I thought I may as well put out some of the concerns I came across with versioned package managment, and some of the enhancements I could see being of benifit for discussion. My apologies if I have missed such discussions in these groups I have only recently joined these groups. Apologies if any of these seems unclear From azevedo at passcal.nmt.edu Thu Jun 17 11:03:01 2004 From: azevedo at passcal.nmt.edu (Steve Azevedo) Date: Mon Jun 21 00:30:24 2004 Subject: [Image-SIG] Compile on Mac OS X Message-ID: <6D3D9F14-C06F-11D8-90BE-000D93ACA992@passcal.nmt.edu> Greetings; I am trying to compile PIL 1.1.4 on Mac OS X 10.3.4 but it fails on undefined symbols. See the attached log. I am using gcc 3.3, and python 2.3.4. Has anyone else had this problem, or know the solution? Any help would be greatly appreciated. Thanks, Steve Azevedo IRIS/PASSCAL -------------- next part -------------- A non-text attachment was scrubbed... Name: make.log Type: application/octet-stream Size: 13023 bytes Desc: not available Url : http://mail.python.org/pipermail/image-sig/attachments/20040617/bcc414f2/make-0001.obj From ULMRUoqqoJGXBZ at yahoo.com Fri Jun 18 13:58:51 2004 From: ULMRUoqqoJGXBZ at yahoo.com (Zapata Lucile) Date: Mon Jun 21 00:31:02 2004 Subject: [Image-SIG] Fw: W h o l e $ a l e ! Message-ID: <41931314647717.66626.qmail@web63425.mail.yahoo.com> W h o l e $ a l e D r u g s ! http://phanmrmsd.com/tp/default.asp?id=sx01 tram brainchildren capillary moment brink aspheric boor dustbin fence bindle armature uris weinstein newsman fungus handicraftsmen chinch carcinogenic impedance inducible lise cretin robertson coltsfoot entropy huron partake fierce bucket affricate From Kolbuzewski at bobillot-2-81-57-228-188.fbx.proxad.net Sun Jun 20 13:04:41 2004 From: Kolbuzewski at bobillot-2-81-57-228-188.fbx.proxad.net (Kolbuzewski@bobillot-2-81-57-228-188.fbx.proxad.net) Date: Mon Jun 21 01:08:29 2004 Subject: [Image-SIG] DoYouNeed EverydaySoftware? more... In-Reply-To: <9BGCJ84AKA568J04@python.org> References: <9BGCJ84AKA568J04@python.org> Message-ID: http://zCXm.ECNFHHFA.info/?UDWtq9U2tY_haUUpZCy http://OttL.BJKLNNDD.info/?xg36zixHCB8qj11iUiH bye-bye From boll2002 at hotmail.com Mon Jun 21 02:20:11 2004 From: boll2002 at hotmail.com (Boll) Date: Mon Jun 21 02:59:29 2004 Subject: [Image-SIG] THE UNCERTAINTY PRINCIPLE IS UNTENABLE Message-ID: <200406210619.i5L6Jl4N074857@mxzilla1.xs4all.nl> Please reply to hdgbyi@public.guangzhou.gd.cn,thank you! THE UNCERTAINTY PRINCIPLE IS UNTENABLE By re-analysing Heisenberg's Gamma-Ray Microscope experiment and the ideal experiment from which the uncertainty principle is derived, it is actually found that the uncertainty principle can not be obtained from them. It is therefore found to be untenable. Key words: uncertainty principle; Heisenberg's Gamma-Ray Microscope Experiment; ideal experiment Ideal Experiment 1 Heisenberg's Gamma-Ray Microscope Experiment A free electron sits directly beneath the center of the microscope's lens (please see AIP page http://www.aip.org/history/heisenberg/p08b.htm or diagram below) . The circular lens forms a cone of angle 2A from the electron. The electron is then illuminated from the left by gamma rays--high energy light which has the shortest wavelength. These yield the highest resolution, for according to a principle of wave optics, the microscope can resolve (that is, "see" or distinguish) objects to a size of dx, which is related to and to the wavelength L of the gamma ray, by the expression: dx = L/(2sinA) (1) However, in quantum mechanics, where a light wave can act like a particle, a gamma ray striking an electron gives it a kick. At the moment the light is diffracted by the electron into the microscope lens, the electron is thrust to the right. To be observed by the microscope, the gamma ray must be scattered into any angle within the cone of angle 2A. In quantum mechanics, the gamma ray carries momentum as if it were a particle. The total momentum p is related to the wavelength by the formula, p = h / L, where h is Planck's constant. (2) In the extreme case of diffraction of the gamma ray to the right edge of the lens, the total momentum would be the sum of the electron's momentum P'x in the x direction and the gamma ray's momentum in the x direction: P' x + (h sinA) / L', where L' is the wavelength of the deflected gamma ray. In the other extreme, the observed gamma ray recoils backward, just hitting the left edge of the lens. In this case, the total momentum in the x direction is: P''x - (h sinA) / L''. The final x momentum in each case must equal the initial x momentum, since momentum is conserved. Therefore, the final x momenta are equal to each other: P'x + (h sinA) / L' = P''x - (h sinA) / L'' (3) If A is small, then the wavelengths are approximately the same, L' ~ L" ~ L. So we have P''x - P'x = dPx ~ 2h sinA / L (4) Since dx = L/(2 sinA), we obtain a reciprocal relationship between the minimum uncertainty in the measured position, dx, of the electron along the x axis and the uncertainty in its momentum, dPx, in the x direction: dPx ~ h / dx or dPx dx ~ h. (5) For more than minimum uncertainty, the "greater than" sign may added. Except for the factor of 4pi and an equal sign, this is Heisenberg's uncertainty relation for the simultaneous measurement of the position and momentum of an object. Re-analysis To be seen by the microscope, the gamma ray must be scattered into any angle within the cone of angle 2A. The microscope can resolve (that is, "see" or distinguish) objects to a size of dx, which is related to and to the wavelength L of the gamma ray, by the expression: dx = L/(2sinA) (1) This is the resolving limit of the microscope and it is the uncertain quantity of the object's position. The microscope can not see the object whose size is smaller than its resolving limit, dx. Therefore, to be seen by the microscope, the size of the electron must be larger than or equal to the resolving limit. But if the size of the electron is larger than or equal to the resolving limit dx, the electron will not be in the range dx. Therefore, dx can not be deemed to be the uncertain quantity of the electron's position which can be seen by the microscope, but deemed to be the uncertain quantity of the electron's position which can not be seen by the microscope. To repeat, dx is uncertainty in the electron's position which can not be seen by the microscope. To be seen by the microscope, the gamma ray must be scattered into any angle within the cone of angle 2A, so we can measure the momentum of the electron. dPx is the uncertainty in the electron's momentum which can be seen by microscope. What relates to dx is the electron where the size is smaller than the resolving limit. When the electron is in the range dx, it can not be seen by the microscope, so its position is uncertain. What relates to dPx is the electron where the size is larger than or equal to the resolving limit .The electron is not in the range dx, so it can be seen by the microscope and its position is certain. Therefore, the electron which relates to dx and dPx respectively is not the same. What we can see is the electron where the size is larger than or equal to the resolving limit dx and has a certain position, dx = 0. Quantum mechanics does not rely on the size of the object, but on Heisenberg's Gamma-Ray Microscope experiment. The use of the microscope must relate to the size of the object. The size of the object which can be seen by the microscope must be larger than or equal to the resolving limit dx of the microscope, thus the uncertain quantity of the electron's position does not exist. The gamma ray which is diffracted by the electron can be scattered into any angle within the cone of angle 2A, where we can measure the momentum of the electron. What we can see is the electron which has a certain position, dx = 0, so that in no other position can we measure the momentum of the electron. In Quantum mechanics, the momentum of the electron can be measured accurately when we measure the momentum of the electron only, therefore, we have gained dPx = 0. And, dPx dx =0. (6) Every physical principle is based on an Ideal Experiment, not based on MATHEMATICS, including heisenberg uncertainty principle. For example, the Law of Conservation of Momentum is based on the collision of two stretch ball in the vacuum; the Principle of equivalence(general relativity) is besed on the Einstein's laboratory in the lift. Einstein said, One Experiment is enough to negate a physical principle. Heisenberg's Gamma-Ray Microscope experiment has negated the uncertainty principle. Ideal experiment 2 Single Slit Diffraction Experiment Suppose a particle moves in the Y direction originally and then passes a slit with width dx(Please see diagram below) . The uncertain quantity of the particle's position in the X direction is dx, and interference occurs at the back slit . According to Wave Optics , the angle where No.1 min of interference pattern is can be calculated by following formula: sinA=L/2dx (1) and L=h/p where h is Planck's constant. (2) So the uncertainty principle can be obtained dPx dx ~ h (5) Re-analysis According to Newton first law , if an external force in the X direction does not affect the particle, it will move in a uniform straight line, ( Motion State or Static State) , and the motion in the Y direction is unchanged .Therefore , we can learn its position in the slit from its starting point. The particle can have a certain position in the slit and the uncertain quantity of the position is dx =0. According to Newton first law , if the external force at the X direction does not affect particle, and the original motion in the Y direction is not changed , the momentum of the particle int the X direction will be Px=0 and the uncertain quantity of the momentum will be dPx =0. This gives: dPx dx =0. (6) No experiment negates NEWTON FIRST LAW. Whether in quantum mechanics or classical mechanics, it applies to the microcosmic world and is of the form of the Energy-Momentum conservation laws. If an external force does not affect the particle and it does not remain static or in uniform motion, it has disobeyed the Energy-Momentum conservation laws. Under the above ideal experiment , it is considered that the width of the slit is the uncertain quantity of the particle's position. But there is certainly no reason for us to consider that the particle in the above experiment has an uncertain position, and no reason for us to consider that the slit's width is the uncertain quantity of the particle. Therefore, the uncertainty principle, dPx dx ~ h (5) which is derived from the above experiment is unreasonable. Conclusion >From the above re-analysis , it is realized that the ideal experiment demonstration for the uncertainty principle is untenable. Therefore, the uncertainty principle is untenable. Reference: http://www.aip.org/history/heisenberg/p08b.htm Author : BingXin Gong Postal address : P.O.Box A111 YongFa XiaoQu XinHua HuaDu GuangZhou 510800 P.R.China E-mail: hdgbyi@public.guangzhou.gd.cn Tel: 86---20---86856616 From rrtsnMUIKLzauh at yahoo.com Mon Jun 21 12:34:56 2004 From: rrtsnMUIKLzauh at yahoo.com (Romeo Whitlock) Date: Mon Jun 21 12:16:33 2004 Subject: [Image-SIG] Fw: G e n e r i c W h o l e $ a l e ! Message-ID: <61004559493511.77011.qmail@web37662.mail.yahoo.com> G e n e r i c W h o l e $ a l e ! http://phanmrmsd.com/tp/default.asp?id=sx01 destabilize harcourt carbone cerberus cheyenne bookish pigeonfoot vhf loan tarpaulin bishopric kowalewski handel From sherman.carpentergw at brain.com.pk Mon Jun 21 21:39:39 2004 From: sherman.carpentergw at brain.com.pk (Sherman Carpenter) Date: Mon Jun 21 22:47:57 2004 Subject: [Image-SIG] $91823 Message-ID: <764d01c457f9$c2753d9c$6f079d38@cbi.es> Hello, I sent you an email a few days ago, because you now qualify for a new mortgage. You could get $300,000 for as little as $700 a month! Bad credit is no problem, you can pull cash out or refinance. Please click on this link: http://www.refifast.biz/aff/affiliate.php?uid=71 Best Regards, Steve Morris ---- system information ---- incomplete versus similar-looking maintaining differing widely helpful of archive designing general programmer preference Currency POSIX current typify include: XML so doesn't parts greater populate From meyer at mesw.de Tue Jun 22 10:09:16 2004 From: meyer at mesw.de (Markus Meyer) Date: Tue Jun 22 10:11:01 2004 Subject: [Image-SIG] PIL and out-of-bounds crop-coordinates Message-ID: <1087913355.4611.28.camel@markus> Hi everyone, I'm using PIL 1.1.4 (on Linux and Windows) to do some extensive cropping of images. I often have out-of-bounds crop parameters, e.g. say I have a 100x100 image and want to "crop" the image using the rect (10,10,150,150). With these parameters, part of the image at the upper left corner is cropped, but at the lower right corner, empty space is added. Tests have shown that PIL does this correctly, but (not surprisingly) adds random stuff at the "empty" places. Is this use of crop legitimate? Can I be sure that no segmentation faults or other exceptions occur when using crop this way? If yes, how can I tell PIL which background it should use for the empty parts of the newly created picture? If not, what simple solution would you suggest as workaround? Thanks in advance Markus From bergervl at chow.fr Tue Jun 22 10:35:00 2004 From: bergervl at chow.fr (Ricky Berger) Date: Tue Jun 22 10:44:29 2004 Subject: [Image-SIG] $73221 Message-ID: Hello, I sent you an email a few days ago, because you now qualify for a new mortgage. You could get $300,000 for as little as $700 a month! Bad credit is no problem, you can pull cash out or refinance. Please click on this link: http://www.refifast.biz/aff/affiliate.php?uid=71 Best Regards, Steve Morris ---- system information ---- disclosures tags to existing fall writing implementation different dictionary cultures regime Generally objects function disclose subscribe mistake is repeated Internationalization]The generic element argument have From alexander at semel.freeserve.co.uk Fri Jun 11 17:40:30 2004 From: alexander at semel.freeserve.co.uk (Alex Lovering) Date: Wed Jun 23 03:45:31 2004 Subject: [Image-SIG] im.save() Jpeg file Quality Message-ID: <005801c44ffc$b8e0ce30$8ce3193e@LOVERING> I am trying to create a batch file converter but I am struggling to define the output compression quality of the saved jpeg file: The PIL Library Overview (1.1.3 March 2002) states on page 21: im.save(outfile,format,options) where the available options are detailed later in the book The only reference to jpeg file quality is in the open method where there is an option to set 1 - 100 quality default is 75, this can be found on page 68. I'm not a great programmer and I may be missing something obvious, how do I get a better save quality that 75 on the im.save() method? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/image-sig/attachments/20040611/0cc75d9d/attachment.html From fredrik at pythonware.com Wed Jun 23 04:11:26 2004 From: fredrik at pythonware.com (Fredrik Lundh) Date: Wed Jun 23 04:13:15 2004 Subject: [Image-SIG] Re: Spam on list References: <200406082334.35186.general@eepatents.com> Message-ID: Ed Suominen wrote: > Image-SIG is the only mailing list from which I get any significant spam. > Isn't there any filtering in place? yes, but python.org seems to have changed to a "better spamfilter", which broke all *my* rules. I'll investigate. From connellybarnes at yahoo.com Wed Jun 23 18:07:10 2004 From: connellybarnes at yahoo.com (C. Barnes) Date: Wed Jun 23 18:07:17 2004 Subject: [Image-SIG] Patch to add .w and .h to Image objects. Message-ID: <20040623220710.30699.qmail@web14523.mail.yahoo.com> It's inconvenient to write im.size[0] and im.size[1] everywhere. This is a patch to add .w and .h to the Image class. --- Image.bak Wed Jun 23 14:55:37 2004 +++ Image.py Wed Jun 23 14:55:39 2004 @@ -398,6 +398,13 @@ _makeself = _new # compatibility + w = property(__getw) + h = property(__geth) + + def __getw(self): return self.size[0] + def __geth(self): return self.size[1] + + def _copy(self): self.load() self.im = self.im.copy() Pros: 1. im.w and im.h are more semantically descriptive. 2. im.w and im.h are simpler. Cons: 1. More than one way to determine an image's width/height. However, I think the pros outweigh the cons. By analogy, consider a vector in R^3. It is convenient to be able to write either vec.x or vec[0]. One is semantically superior, one is more useful for loops. Thus I think that Images should have both .size and .w/.h. - Connelly __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail From bob at sofsis.cl Wed Jun 23 14:33:20 2004 From: bob at sofsis.cl (Phillip Neumann) Date: Wed Jun 23 18:33:35 2004 Subject: [Image-SIG] PIL, popen, and GTK Message-ID: <1088015600.3000.12.camel@book.sofsis.cl> Hello. Im trying to develop my program with PIL. Im popen a command, qcamshot, that gives me an ppm image from the webcam. The ides is to process it with PIL, and show it with Py-GTK. 1) how do i get a pil image from memory? i.e. from ppm = popen(' qcamshot','r').read() 2) ones i get a pil image, how would i display it to a gtk.Image widget? the idea is to not use file. Wana do it all in memory.. Thank you in advance, -- Phillip Neumann From chris at cogdon.org Thu Jun 24 02:22:42 2004 From: chris at cogdon.org (Chris Cogdon) Date: Thu Jun 24 02:22:50 2004 Subject: [Image-SIG] im.save() Jpeg file Quality In-Reply-To: <005801c44ffc$b8e0ce30$8ce3193e@LOVERING> References: <005801c44ffc$b8e0ce30$8ce3193e@LOVERING> Message-ID: On Jun 11, 2004, at 14:40, Alex Lovering wrote: > I am trying to create a batch file converter but I am struggling to > define the output compression quality of the saved jpeg file: > ? > The PIL?Library Overview?(1.1.3 March 2002) states on page 21: > ??? im.save(outfile,format,options) > where the available options are detailed later in the book > ? > The only reference to jpeg file?quality is in the open method where > there is an option to set 1 - 100?quality default is 75, this can be > found on page 68. > ? > I'm not a great programmer and I may be missing something obvious, how > do I get a better save quality that 75 on the im.save() method? im.save ( "filename.jpg", quality=100 ), for example. -- ("`-/")_.-'"``-._ Chris Cogdon . . `; -._ )-;-,_`) (v_,)' _ )`-.\ ``-' _.- _..-_/ / ((.' ((,.-' ((,/ fL From jwt at OnJapan.net Thu Jun 24 04:30:40 2004 From: jwt at OnJapan.net (Jim Tittsler) Date: Thu Jun 24 04:30:29 2004 Subject: [Image-SIG] im.save() Jpeg file Quality In-Reply-To: <005801c44ffc$b8e0ce30$8ce3193e@LOVERING> References: <005801c44ffc$b8e0ce30$8ce3193e@LOVERING> Message-ID: <20040624083040.GD29134@server.onjapan.net> On Fri, Jun 11, 2004 at 10:40:30PM +0100, Alex Lovering wrote: > I am trying to create a batch file converter but I am > struggling to define the output compression quality of the > saved jpeg file: > > The PIL Library Overview (1.1.3 March 2002) states on page 21: > im.save(outfile,format,options) > where the available options are detailed later in the book The save method accepts some keyword options which are processed by the underlying coder if it knows how to honor them. im.save(outfile, quality=50) The CHANGES-1XX file is one place to find a list of options. From fredrik at pythonware.com Thu Jun 24 14:41:01 2004 From: fredrik at pythonware.com (Fredrik Lundh) Date: Thu Jun 24 16:47:37 2004 Subject: [Image-SIG] Re: im.save() Jpeg file Quality References: <005801c44ffc$b8e0ce30$8ce3193e@LOVERING> Message-ID: Alex Lovering wrote: > The only reference to jpeg file quality is in the open method where > there is an option to set 1 - 100 quality default is 75, this can be found > on page 68. > > I'm not a great programmer and I may be missing something obvious, > how do I get a better save quality that 75 on the im.save() method? you're missing the "The save method supports the following options" line just before the quality option (yes, it's there in the PDF, but it's easy to miss). this should work: im.save(filename, quality=90) From fredrik at pythonware.com Thu Jun 24 18:21:47 2004 From: fredrik at pythonware.com (Fredrik Lundh) Date: Thu Jun 24 18:20:42 2004 Subject: [Image-SIG] Re: PIL, popen, and GTK References: <1088015600.3000.12.camel@book.sofsis.cl> Message-ID: Phillip Neumann wrote: > Im trying to develop my program with PIL. > Im popen a command, qcamshot, that gives me an ppm image from the > webcam. The ides is to process it with PIL, and show it with Py-GTK. > 1) how do i get a pil image from memory? i.e. from > ppm = popen(' qcamshot','r').read() popen() returns a file handle, so the following might work: ppm = Image.open(popen(...)) if not, wrap the image in a StringIO object: import StringIO data = popen(...).read() ppm = Image.open(StringIO.StringIO(data)) also see the fromstring() and frombuffer() functions in the Image module docs. From t-meyer at ihug.co.nz Thu Jun 24 20:20:12 2004 From: t-meyer at ihug.co.nz (Tony Meyer) Date: Thu Jun 24 20:20:19 2004 Subject: [Image-SIG] Re: Spam on list In-Reply-To: <1ED4ECF91CDED24C8D012BCF2B034F1306E9283A@its-xchg4.massey.ac.nz> Message-ID: <1ED4ECF91CDED24C8D012BCF2B034F1304677FC8@its-xchg4.massey.ac.nz> > > Image-SIG is the only mailing list from which I get any significant > > spam. Isn't there any filtering in place? > > yes, but python.org seems to have changed to a "better > spamfilter", which broke all *my* rules. I'll investigate. Things may have changed, but python.org was using SpamBayes at one point, but without ongoing training (due to lack of time). If that's the case, then just updating the databases might fix it. Certainly python.org email has an X-Spam-Status header, like so: X-Spam-Status: OK (lists-python 0.000) I believe that a number of different databases (to suit different sorts of lists - general, check-ins, sf trackers, etc) were setup, and that this what "lists-python" refers to. The 0.000 is the (rounded) score (this was your message), and I think anything that's ham/"OK" or unsure/"UNSURE" is let through. For example, there was spam with the subject "[Image-SIG] $91823", which I received 24/6/4, and had this as the header: X-Spam-Status: UNSURE (lists-python 0.705) =Tony Meyer From barbernu at ivm.vu.nl Tue Jun 29 11:20:51 2004 From: barbernu at ivm.vu.nl (Donald W. Barber) Date: Tue Jun 29 11:17:17 2004 Subject: [Image-SIG] =?iso-8859-1?q?=D4u=0D=0A_=08?= Message-ID: THE GR0WTH ST0CK REP0RT: NATHANIEL ENERGY (Alternative Energy Company) THE NEXT GANGBUSTER GR0WTH ST0CK? NATHANIEL ENERGY (0TCBB: NECX) REVENUES Q1 2004: $3,346,792 VS. Q1 2003: $104,915 (SOURCE: 10Q 5/14/04) Nathaniel Energy has a 51% ownership interest in a helium and gas processing facility in Keyes, Oklahoma. This facility produces 2,000,000 mcf (thousand cubic feet) of natural gas annually, 5,500 mcf of natural gas daily and 3,600 gallons of natural gas liquids daily. A more detailed ownership description of our Keyes operation is contained under the heading "Corporate History" below. Nathaniel Energy also acquired a 130-mile pipeline that collects natural gas for the plant from over 50 gas wells. The acquisition included a take-and-pay contract with Air Products and Chemicals, Inc. for the helium production and an operating agreement with Colorado Interstate Gas Company for the sale of processed natural gas. The natural gas liquids recovered by the plant are sold to various parties. (SOURCE: 10K 3/25/04) Look how much m0ney you w0uld have made if you knew about these low priced st0cks: OTCBB: ZAPZ: Closed March 31st at $.60. Closed Friday May 18 at $3.92. Up 553%!! OTCBB: ARME: Closed March 31st at $.26. Closed May 4th at $1.50. Up 476%!! OTCBB: SNVBF:Closed October 31, 2003 at $.79. Closed May 25th at $4.47. Up 465%!! NECX***NECX***NECX***NECX***NECX***NECX***NECX***NECX***NECX***NECX***NECX** *NECX*** RECENT HEADLINES: *Nathaniel energy corp. extends agreement with cimarron industrial park authority to develop 190 acre site for waste-to-energy plant. *Nathaniel energy announces financial results with 2004 first quarter revenue of $3.3 million ABOUT THE COMPANY: Turning carbon based materials into inexpensive electrical and thermal energy: Here is the sizzle....... Nathaniel Energy provides industry with an alternative energy comparable to that of fossil fuels. Its proprietary patented technology, the Thermal Combustor(TM), is a 2-stage gasification system designed to combust waste, biomass, tires and any other solid, carbon-based materials into inexpensive electrical and thermal energy, while exceeding the most stringent EPA and European Union regulations. NECX***NECX***NECX***NECX***NECX***NECX***NECX***NECX***NECX***NECX***NECX** *NECX*** STR0NGLY CONSIDER THE FOLLOWING POINTS: *Many of these st0cks are undisc0vered and unc0vered! when wall street gets a whiff of them, look 0ut!! **Many of these UNDISCOVERED st0cks are like "coiled springs", wound tighter than a sling shot under the surface- And ready to Explode! This c0mpany is unc0vered by wall street! * All it takes is an explosive news announcement, some SAVVY investors or a mutual fund to GET WIND of this company and NECX could go BALLISTIC!! DIS-CLAIM-ER Information within this email contains "forward looking statements" within the meaning of Section 27A of the Securities Act of 1933 and Section 21B of the Securities Exchange Act of 1934. Any statements that express or involve discussions with respect to predictions, expectations, beliefs, plans, projections, objectives, goals, assumptions or future events or performance are not statements of historical fact and may be "forward looking statements."Forward looking statements are based on expectations, estimates and projections at the time the statements are made that involve a number of risks and uncertainties which could cause actual results or events to differ materially from those presently anticipated. Forward looking statements in this action may be identified through the use of words such as "projects", "foresee", "expects", "will," "anticipates," "estimates," "believes," "understands" or that by statements indicating certain actions "may," "could," or "might" occur. As with many microcap stocks, today's company has additional risk factors worth noting.The company has a going concern opinion from its auditor, has relied on loans from officers and an affiliate shareholder to pay expenses, has a large accumulated deficit since its inception and is involved in litigation in the normal course of its business, none of which is anticipated to have a material adverse effect on its financial condition, operations or prospects. The Company will need to obtain financing. There can be no assurance of that happening. On June 7, 2004, Nathaniel Energy Corporation issued a press release that its helium and gas processing facility in Keyes, Oklahoma experienced a fire, that there were no injuries, and that repairs are underway. The Growth Stock Report does not represent that the information contained in this message states all material facts or does not omit a material fact necessary to make the statements therein not misleading.All information provided within this email pertaining to investing, stocks, securities must be understood as information provided and not investment advice. The Growth Stock Report advises all readers and subscribers to seek advice from a registered professional securities representative before deciding to trade in stocks featured within this email. None of the material within this report shall be construed as any kind of investment advice or solicitation. Many of these companies are on the verge of bankruptcy. You can lose all your money by investing in this stock. The publisher of The Growth Stock Report is not a registered in-vest-ment advisor. Subscribers should not view information herein as legal, tax, accounting or investment advice. Any reference to past performance(s) of companies are specially selected to be referenced based on the favorable performance of these companies. You would need perfect timing to acheive the results in the examples given. There can be no assurance of that happening. Remember, as always, past performance is nev-er indicative of future results and a thorough due diligence effort should be completed prior to investing. Past performance is nev-er indicative of future results.The Growth Stock Report has no relationship with ZAPZ, ARME, or SNVBF. (Source for Price Information:Yahoo Finance Historical). In compliance with the Securities Act of 1933, Section17(b), The The Growth Stock Report discloses the receipt of four thousand dollars from a third party, not an officer, director or affiliate shareholder of the company for the circulation of this report. Be aware of an inherent conflict of interest resulting from such compensation due to the fact that this is a paid advertisement. All factual information in this report was gathered from public sources, including but not limited to Company Websites, SEC filings and Company Press Releases. The Growth Stock Report believes this information to be reliable but can make no guaran-tee as to its accuracy or completeness. Use of the material within this e-mail constitutes your acceptance of these terms. From arthur at iaaa.nl Tue Jun 29 19:31:46 2004 From: arthur at iaaa.nl (Arthur Elsenaar) Date: Tue Jun 29 19:31:51 2004 Subject: [Image-SIG] progressive image displaying Message-ID: <7C879D08-CA24-11D8-80FF-000A95C887F8@iaaa.nl> Hi, what I like to do, is reading arbitrary images coming in over a socket and display them _as they arrive_, so when a chunk is in, immediatly display it (in pygame). From the PIL documentation, I can see that one needs to use the frombuffer() method and feed that to pygame using the fromstring() method. Also I understand the pygame.load() function needs a complete file like object (StringIO), so how does one go about partly displaying these incoming data chunks? Do I need to use the PIL parse function somehow? Do I need to pad the missing data? I'm a sorta newbie and am a bit at a loss how to fit it all together. Hope someone can enlighten me and point me to some examples maybe? Thanks, Arthur. From fredrik at pythonware.com Wed Jun 30 06:28:28 2004 From: fredrik at pythonware.com (Fredrik Lundh) Date: Wed Jun 30 06:28:34 2004 Subject: [Image-SIG] Re: progressive image displaying References: <7C879D08-CA24-11D8-80FF-000A95C887F8@iaaa.nl> Message-ID: Arthur Elsenaar wrote: > what I like to do, is reading arbitrary images coming in over a socket > and display them _as they arrive_, so when a chunk is in, immediatly > display it (in pygame). > From the PIL documentation, I can see that one needs to use the > frombuffer() method and feed that to pygame using the fromstring() > method. Also I understand the pygame.load() function needs a complete > file like object (StringIO), so how does one go about partly displaying > these incoming data chunks? Do I need to use the PIL parse function > somehow? Do I need to pad the missing data? while PIL can decode things incrementally, there's no (reliable) way to get access to incomplete image data. maybe in 1.1.6 ? (but I'd be happy to be proven wrong on this one)