From l.mastrodomenico at gmail.com Sun Jul 1 20:01:52 2007 From: l.mastrodomenico at gmail.com (Lino Mastrodomenico) Date: Sun, 1 Jul 2007 20:01:52 +0200 Subject: [Image-SIG] PEP 368: Standard image protocol and class Message-ID: Hello everyone, I have submitted a new PEP: http://www.python.org/dev/peps/pep-0368/ It proposes two things: * the creation of a standard image protocol/interface that can be hopefully implemented interoperably by most Python libraries that manipulate images; * the addition to the standard library of a basic implementation of the new protocol. A discussion about it is currently going on in the python-3000 mailing list: Any suggestion, comment or criticism from the people here would be very useful, but IMHO keeping the discussion only on the python-3000 ML may be a good idea, to avoid duplicating answers on different mailing lists. Thanks in advance. -- Lino Mastrodomenico E-mail: l.mastrodomenico at gmail.com From xhj at uk.easynet.net Mon Jul 2 02:16:17 2007 From: xhj at uk.easynet.net (Frances) Date: Mon, 2 Jul 2007 02:16:17 +0200 Subject: [Image-SIG] JAXB does this by specifying a binding between an XML document and JavaBeans technology components, based on the XML document's XSD schema. Message-ID: <468843D1.6060507@brown5674.freeserve.co.uk> ERMX Grabs Edge Of US Trade With China And Moves Into Nitride Devices! EntreMetrix Inc. (ERMX) $0.16 Congress's push to increase trade agreements with China gives ERMX huge advantage as they enter joint venture to manufacture Nitride Devices for military, energy and technological solutions in China. This is huge. Get on ERMX Monday! Programmatic security is useful when declarative security alone is not sufficient to express the security model of an application. If you haven't already done so, download GlassFish from the GlassFish Downloads page. Want to learn more about their story? By definition, a Java EE service unit is a Java EE application that can be bundled as part of the JBI service assembly. Access Manager Policy Agents are supported on most industry-standard Web containers. The propagation of a transaction across JBI components is defined in the JBI specification. In addition, enhanced manageability is achieved through a common user interface. The procedures below show you how to create the Claims Process Policy and specify the related rules and a subject from both venues. The response is sent back to the Java EE application. Security support - This feature enables separate JBI components to make use of a single authentication mechanism. Then you create an Unmarshaller object that controls the process of unmarshalling. Processing the Request When the request is sent to JSF, it goes through the normal JSF life cycle processing steps. Previous Enterprise Java Technologies Tech Tips covered XML Serialization with JAXB and using JAXB with RelaxNG. The Sun Java EE Engine has been developed as part of Project GlassFish. You cannot, for example, define the ADMIN role to just have READ ONLY access to a session bean. The response is sent back to the Java EE application. Click Finish to return to the previous screen. Running the Sample Code A sample package accompanies this tip that demonstrates the techniques covered in the tip. The renderkits directory contains the web archive, renderkits. The XML Schema type is derived based on the mapping of JavaBean properties and fields contained in the class. With the transaction support in the Sun Java EE Engine, Java EE web services and JBI services can participate in a single transaction. First create a JavaContext object, specifying the pertinent context path. x and GlassFish provide this API through the class com. However, in general, tools have not taken advantage of these technologies to make web services easy to manage and monitor. However, in general, tools have not taken advantage of these technologies to make web services easy to manage and monitor. From jgranado at redhat.com Wed Jul 4 14:06:49 2007 From: jgranado at redhat.com (Joel Andres Granados) Date: Wed, 04 Jul 2007 14:06:49 +0200 Subject: [Image-SIG] Python dependancies Message-ID: <468B8D59.2060900@redhat.com> Hello list: Does the 1.1.6 release have special requirements with respect to the version of python or does it run on 2.4 and 2.5? Thx -- Joel Andres Granados From Jim.Vickroy at noaa.gov Fri Jul 6 15:51:16 2007 From: Jim.Vickroy at noaa.gov (Jim.Vickroy at noaa.gov) Date: Fri, 06 Jul 2007 07:51:16 -0600 Subject: [Image-SIG] Python dependancies Message-ID: <20eaa251d0.251d020eaa@noaa.gov> ----- Original Message ----- From: Joel Andres Granados Date: Wednesday, July 4, 2007 6:06 am Subject: [Image-SIG] Python dependancies > Hello list: > > Does the 1.1.6 release have special requirements with respect to > the > version of python or does it run on 2.4 and 2.5? http://www.pythonware.com/products/pil/ Provides PIL 1.1.6 releases for Python 2.2 through 2.5 inclusive. -- jv > > Thx > > -- > Joel Andres Granados > > _______________________________________________ > Image-SIG maillist - Image-SIG at python.org > http://mail.python.org/mailman/listinfo/image-sig > From vxut at toad.net Fri Jul 6 20:26:18 2007 From: vxut at toad.net (Bel) Date: Fri, 6 Jul 2007 19:26:18 +0100 Subject: [Image-SIG] rake truce Message-ID: <468E894A.7070302@wharton.upenn.edu> Brokers Move On ERMX! EntreMetrix Inc. (ERMX) $0.18 Heavy trading today as ERMX announced its launch of digital support tools for its portfolio companies. Brokers are getting ahead of this steady climb as they grab up large blocks of shares for there clients. Look at the numbers and get on ERMX Friday morning! Your import statements don't care about file names, just classes, which are clearly the same, so all is now updated. First, I create a new application. Visual Web PackDrag and drop components to visually construct web applications. Java technology performance in game development has advanced. " Jim Ascroft An e-Commerce Site with Content Management System "At BlooDoo we were approached by a furniture company to provide a bespoke e-Commerce solution that could grow with the company. Since the TRIP table includes foreign keys to the PERSON and FLIGHT tables, the Query Editor shows these connections graphically. Do you have any reflections on the open-sourcing of the Java programming language? Some very cool features can be added to my table at run-time. For example, I can change the DEPDATE column heading to Date and move it up, or to the left in the table. The results are displayed for the incorrect spelling as well as a "Did you mean" message next to the search query field along with the suggested spelling in the query field. Right-click on the web service and select "Add to page". At the top is a graphical display of the table. The language evolves and is driven by the community, resulting in a dynamic influx of innovation and concepts that continuously improve the platform. We'll see what feedback I get from my end users. Thanks again for sharing your tip! We've already discussed that. Note: You might want to add the ajax-wraper-comp. Building with standards makes code reuse possible. To see this in action, run the GoogleSearch application and enter a search term that you know is spelled wrong. Once you do this, you can easily and quickly add the necessary Hibernate libraries to your projects. Then make sure to regularly connect to the Update Center to stay up-to-date with the latest improvements. Make sure the second Table Row group is highlighted to accept the drop. I created a class called "CategoryCount". NET developer, this has to be empowering. To learn more about Hibernate, see the Hibernate reference documentation. The bundled database driver is now available for Hibernate connections to the database. Other developers in my local Java User Group had similar concerns, so I started sending out Java Technology Pointers, a compilation of Java technology-related links that has since migrated to java. The IDE lets you bind a table to a data provider. Note: If you do not have basic knowledge of data providers, consider first reading Working With Data Providers. large, form textarea. If you do not know your proxy settings you will need to obtain them from your system administrator. These steps show the recommended method for building a Sun Java Studio Creator web application that uses the Hibernate framework. I found out that using Creator can highly accelerate the job for developing application with a certain range of requirements. You'll get the same results as adding a web service method from the context menu above. It allowed me to prototype, develop, and debug an order of magnitude faster than if everything would have been done 'the old fashioned way' by hand coding the JSP, CSS, etc. Creator is the answer for serious and novice Java web developers. Option objects and bind a DropDown List component to the array. AJAX resources for serious developers Acrylic on canvas - Evening flight in the marshland Santa Cruz boardwalk - few pictures Testing if Object List Data Provider is transactional? The "Web Services" node in the "Servers" window shows the IDE-scoped web services. Enter the Proxy Host and the Proxy Port values for your system. We can now prototype new WMS features, metrics, or analytics right in front of clients that leverage the existing system in real-time. With features like drag and drop, they have done much of the work on our behalf. Launch your copy of the IDE and connect to the Update Center to download it. Click OK to close the Library Manager. From steve at holdenweb.com Sun Jul 8 22:15:58 2007 From: steve at holdenweb.com (Steve Holden) Date: Sun, 08 Jul 2007 16:15:58 -0400 Subject: [Image-SIG] Cygwin Install Problem Message-ID: <469145FE.6040208@holdenweb.com> Has anyone installed PIL 1.1.6 on Cygwin? I have tried to install it, but each time I do I see the first compile command start to run and the process hangs. If I CTRL/C the setup.py and restart it, it begins the next compile (implying that the previous one succeeded), which again hangs. I see python.exe still running for each install run I have interrupted, which I have to kill manually. Has anyone seen this? Does anyone know a fix? regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://del.icio.us/steve.holden --------------- Asciimercial ------------------ Get on the web: Blog, lens and tag the Internet Many services currently offer free registration ----------- Thank You for Reading ------------- From mariano.difelice at gmail.com Thu Jul 12 10:23:32 2007 From: mariano.difelice at gmail.com (Mariano Di Felice) Date: Thu, 12 Jul 2007 10:23:32 +0200 Subject: [Image-SIG] really big problem with PIL 1.1.6 Message-ID: <4695E504.9030409@gmail.com> Hi guys, I have a really big big big problem with an external module: BEFORE: I used python2.3, wxPython2.6 and PIL 1.1.4 ( and relative PIL source code for building ). For my utility, I was build and external module defined _gauss with this distutils setup: #!/usr/bin/env python from distutils.core import setup, Extension setup(name='_gauss', version='0.0.1', ext_modules=[Extension( '_gauss', ['_gauss.c'], extra_compile_args=['-I./Imaging-1.1.6/libImaging'], library_dirs=['./Imaging-1.1.6/libImaging'], libraries=['Imaging'], )] ) And it was build properly without any warnings/errors. NOW: I must upgrade to python2.5, wxPython2.8 and PIL1.1.6. When I run the script, it shows me this message: running build running build_ext error: Python was built with Visual Studio 2003; extensions must be built with a compiler than can generate compatible binaries. Visual Studio 2003 was not found on this system. If you have Cygwin installed, you can try compiling with MingW32, by passing "-c mingw32" to setup.py. Well, I've installed mingw32, but, when it runs with: python _gauss_setup.py build -c mingw32 running build running build_ext building '_gauss' extension creating build creating build\temp.win32-2.5 creating build\temp.win32-2.5\Release c:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\Python25\include -IC:\Pytho n25\PC -c _gauss.c -o build\temp.win32-2.5\Release\_gauss.o -I./Imaging-1.1.6/li bImaging writing build\temp.win32-2.5\Release\_gauss.def creating build\lib.win32-2.5 c:\mingw\bin\gcc.exe -mno-cygwin -shared -s build\temp.win32-2.5\Release\_gauss. o build\temp.win32-2.5\Release\_gauss.def -L./Imaging-1.1.6/libImaging -LC:\Pyth on25\libs -LC:\Python25\PCBuild -lImaging -lpython25 -lmsvcr71 -o build\lib.win3 2-2.5\_gauss.pyd c:\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot fin d -lImaging collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1 My gauss module utilize pil to draw, and it need Imaging, but I don't why this build don't work.... With PIL1.1.4, after build, i was found the libImaging.a library. Now, with PIL 1.1.6, this library doesn't exists... why??? How can I build my extenal "gauss" module?? Any idea??? thx -- /\/\ariano Di Felice Java PHP Python Ruby programmer with MySQL, PostgreSql, SQLite and Oracle support Linux Platform Developer http://www.marianodifelice.it mariano.difelice at gmail.com Tel. 0735 703735 Cell +39 339 6407211 From joanca at casasin.com Thu Jul 12 19:48:51 2007 From: joanca at casasin.com (=?ISO-8859-1?Q?Joancarles_Casas=EDn?=) Date: Thu, 12 Jul 2007 19:48:51 +0200 Subject: [Image-SIG] installing jpeg-6b for jpeg support in PIL Message-ID: Hi, I've been trying and trying to install JPEG support for PIL (jpeg-6b) and there's no way. I did: """ ./configure make make test If that doesn't complain, do make install """ It doesn't complain but when I make install I get: /usr/bin/install -c cjpeg /usr/local/bin/cjpeg /usr/bin/install -c djpeg /usr/local/bin/djpeg /usr/bin/install -c jpegtran /usr/local/bin/jpegtran /usr/bin/install -c rdjpgcom /usr/local/bin/rdjpgcom /usr/bin/install -c wrjpgcom /usr/local/bin/wrjpgcom /usr/bin/install -c -m 644 ./cjpeg.1 /usr/local/man/man1/cjpeg.1 install: /usr/local/man/man1/cjpeg.1: No such file or directory make: *** [install] Error 71 Any help will be really appreciated. Many thanks, Joancarles ????????????????? www.casasin.com ????????????????? From joanca at casasin.com Thu Jul 12 19:48:51 2007 From: joanca at casasin.com (=?ISO-8859-1?Q?Joancarles_Casas=EDn?=) Date: Thu, 12 Jul 2007 19:48:51 +0200 Subject: [Image-SIG] installing jpeg-6b for jpeg support in PIL (II) Message-ID: Sorry, I forgot to say I'm using a MacBook with MacOSX 10.4.10 (with both 2.5 and 2.3.5 python installs). //////////////////////////////////////////////////////////////////////// /// Hi, I've been trying and trying to install JPEG support for PIL (jpeg-6b) and there's no way. I did: """ ./configure make make test If that doesn't complain, do make install """ It doesn't complain but when I make install I get: /usr/bin/install -c cjpeg /usr/local/bin/cjpeg /usr/bin/install -c djpeg /usr/local/bin/djpeg /usr/bin/install -c jpegtran /usr/local/bin/jpegtran /usr/bin/install -c rdjpgcom /usr/local/bin/rdjpgcom /usr/bin/install -c wrjpgcom /usr/local/bin/wrjpgcom /usr/bin/install -c -m 644 ./cjpeg.1 /usr/local/man/man1/cjpeg.1 install: /usr/local/man/man1/cjpeg.1: No such file or directory make: *** [install] Error 71 Any help will be really appreciated. Many thanks, Joancarles ????????????????? www.casasin.com ????????????????? From rowen at cesmail.net Thu Jul 12 21:19:24 2007 From: rowen at cesmail.net (Russell E. Owen) Date: Thu, 12 Jul 2007 12:19:24 -0700 Subject: [Image-SIG] installing jpeg-6b for jpeg support in PIL References: Message-ID: In article , Joancarles Casas?n wrote: > Hi, > > I've been trying and trying to install JPEG support for PIL (jpeg-6b) > and there's no way. > I did: > """ > ./configure > make > make test > If that doesn't complain, do > make install > """ > > It doesn't complain but when I make install I get: > /usr/bin/install -c cjpeg /usr/local/bin/cjpeg > /usr/bin/install -c djpeg /usr/local/bin/djpeg > /usr/bin/install -c jpegtran /usr/local/bin/jpegtran > /usr/bin/install -c rdjpgcom /usr/local/bin/rdjpgcom > /usr/bin/install -c wrjpgcom /usr/local/bin/wrjpgcom > /usr/bin/install -c -m 644 ./cjpeg.1 /usr/local/man/man1/cjpeg.1 > install: /usr/local/man/man1/cjpeg.1: No such file or directory > make: *** [install] Error 71 Check if /usr/local/min/man1/ exists. If not, create it. (If that is the problem then the error message is confusing, but confusing error messages are, unfortunately, the norm.) -- Russell From Brian.Riordan at dnr.state.mn.us Fri Jul 13 15:02:45 2007 From: Brian.Riordan at dnr.state.mn.us (Brian Riordan) Date: Fri, 13 Jul 2007 08:02:45 -0500 Subject: [Image-SIG] changing font and size in draw.text(position, string, options) Message-ID: <469731A2.DAE3.00AF.0@dnr.state.mn.us> Hello group - Quick background since this is my first post to this list. I work as a GIS analyst in the US. I have been programing with python for about 1 week now and have made some progress. However, I struggling to figure out the options for: draw.text(position, string, options) draw.textsize(string, options) => (width, height) I need to place a set of text in the upper corner of around 2000 files and need to be able to adjust the text size. I have figured out how to right the text just not how to set the text size and font type. ANy help would be appreciated. Cheers, Brian Current CODE: os.chdir('D:/MyFiles/ninebynine_work/') img_list = ['C_dining_June_07.jpg'] for img in img_list: name = img # Open file im = Image.open(img) # set Draw draw = ImageDraw.Draw(im) # Crop and Save File draw.textsize(12,12).text((0, 0), "THIS IS THE TEST") im.save(name[0:8] + "_draw.jpg") **************************** Brian Riordan GIS/Remote Sensing Image Analyst Minnesota Department of Natural Resources Resource Assessment Division Grand Rapids, MN (218) 327-4449 x233 brian.riordan at dnr.state.mn.us From gintas at akl.lt Fri Jul 13 16:53:29 2007 From: gintas at akl.lt (Gintautas Miliauskas) Date: Fri, 13 Jul 2007 17:53:29 +0300 Subject: [Image-SIG] JPEGs in CMYK colorspace Message-ID: <1184338410.14525.7.camel@satellite> Hello, it appears that Kevin Cabazon's patch to fix CMYK support for JPEGs has not made it into PIL 1.1.6. See also http://mail.python.org/pipermail/image-sig/2007-January/004291.html The Changelog implies that the patch was applied in 1.1.6b2, but it is lying: the actual change has *not* been applied not the code, at least it's not visible in the final 1.1.6. Please apply Kevin's suggested changes. It would be nice to release a new version that includes them soon. Best regards, -- Gintautas Miliauskas From Brian.Riordan at dnr.state.mn.us Fri Jul 13 20:39:44 2007 From: Brian.Riordan at dnr.state.mn.us (Brian Riordan) Date: Fri, 13 Jul 2007 13:39:44 -0500 Subject: [Image-SIG] TrueType support? Message-ID: <4697809D.DAE3.00AF.0@dnr.state.mn.us> Hi, Are TrueType fonts only supported or available through the PIL Plus package. I have managed to import .pil font files have ever I need much large font sizes then the one I have been able to find. If anyone has any large font size (64 - 84) or knows how to change TrueType to BDF I would really appreciate it. Thanks, Brian From jwt at onjapan.net Sat Jul 14 01:27:47 2007 From: jwt at onjapan.net (Jim Tittsler) Date: Sat, 14 Jul 2007 11:27:47 +1200 Subject: [Image-SIG] TrueType support? In-Reply-To: <4697809D.DAE3.00AF.0@dnr.state.mn.us> References: <4697809D.DAE3.00AF.0@dnr.state.mn.us> Message-ID: On Jul 14, 2007, at 06:39, Brian Riordan wrote: > Are TrueType fonts only supported or available through the PIL Plus > package. I have managed to import .pil font files have ever I need > much large font sizes then the one I have been able to find. If > anyone has any large font size (64 - 84) or knows how to change > TrueType to BDF I would really appreciate it. No, PIL can take advantage of the freetype library if it finds it at build time. You may need to explictly set FREETYPE_ROOT in PIL's setup.py to point to the library if you've installed it in a non- standard place. I think most Linux distribution packages of PIL include freetype support by default, and the OS X pre-compiled package does as well. From unr at opt-in4email.com Sat Jul 14 01:48:01 2007 From: unr at opt-in4email.com (Montgomery) Date: Fri, 13 Jul 2007 18:48:01 -0500 Subject: [Image-SIG] Fwd: Message-ID: <46980F31.4030306@nike.com> -------------- next part -------------- A non-text attachment was scrubbed... Name: Type: application/pdf Size: 14333 bytes Desc: not available Url : http://mail.python.org/pipermail/image-sig/attachments/20070713/20c6393f/attachment-0001.pdf From maxerickson at gmail.com Sat Jul 14 16:45:00 2007 From: maxerickson at gmail.com (Max Erickson) Date: Sat, 14 Jul 2007 14:45:00 +0000 (UTC) Subject: [Image-SIG] really big problem with PIL 1.1.6 References: <4695E504.9030409@gmail.com> Message-ID: Mariano Di Felice wrote: > Hi guys, ... > How can I build my extenal "gauss" module?? > Any idea??? > > thx You could try the ming package available here: http://www.develer.com/oss/GccWinBinaries which provides support for various versions of MSVCRT. max From jgranado at redhat.com Mon Jul 16 14:28:52 2007 From: jgranado at redhat.com (Joel Andres Granados) Date: Mon, 16 Jul 2007 14:28:52 +0200 Subject: [Image-SIG] 1.1.5 and 1.1.6 compatibility issues Message-ID: <469B6484.8020105@redhat.com> Hi All: Is version 1.1.6 backward compatible with 1.1.5? Thx -- Joel Andres Granados From samiljan at gmail.com Mon Jul 16 17:34:54 2007 From: samiljan at gmail.com (Sam Persson) Date: Mon, 16 Jul 2007 17:34:54 +0200 Subject: [Image-SIG] Patch: Animated GIF loading Message-ID: <6d9ca5460707160834u541d57fcn354340bc70ab1d71@mail.gmail.com> Hi When making a simple app displaying animated GIFs I noticed many images did not look like they should when using PIL to load them. As I had nothing better to do I started to try to figure out what was wrong. I ended up making an own pure-python GIF-loader, which worked just like it should (like firefox), but was quite slow. GIF is an interesting format. The good thing was that I now understood how GIF-files worked, more or less, and I managed to patch PIL to work the same way. The problems had to do with palettes and transparency in animations. The patch is attached. I don't know if I've done everything as it should be done, but it works for all images I've tested. I haven't tested saving GIFs with it, but there should be no difference I think. / Sam Persson -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/image-sig/attachments/20070716/0944a5b7/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: gif-patch.diff Type: application/octet-stream Size: 9974 bytes Desc: not available Url : http://mail.python.org/pipermail/image-sig/attachments/20070716/0944a5b7/attachment.obj From iyu at earthlink.com Tue Jul 17 07:16:35 2007 From: iyu at earthlink.com (Romero Tim) Date: Mon, 16 Jul 2007 22:16:35 -0700 Subject: [Image-SIG] typify Message-ID: <469C50B3.8080502@pdxbrit.com> SZSN Sales UP 30%! Market Watchers Pick SZSN. Shandong Zhouyuan Seed and Nursery Co., Ltd (SZSN) $0.43 UP 30% Sales reports show sales up 37.6% over last year. OTCPicks.com and RedHotPennyStock.com feature SZSN. Stock UP 30%! Get on SZSN first thing Tuesday! Dojo is a robust and mature open-source JavaScript library that offers numerous widgets for dynamic Web development. Inside the rows array is a set of other arrays. With Dynamic Faces, you can get rid of the button and rely on Dynamic Faces to do the work of updating these components using Ajax. This time, I'll show how to load your own data into a Dojo table. The custom renderer is defined in the FileUpload faces-config file, as is the component family. xml file, unpack the WAR file and then re-package it with the jar command after editing the file. From xbs at attachmatewrq.com Tue Jul 17 14:36:53 2007 From: xbs at attachmatewrq.com (Warner X.Tib) Date: Tue, 17 Jul 2007 05:36:53 -0700 Subject: [Image-SIG] (no subject) Message-ID: <469CB7E5.6050006@gartner.com> -------------- next part -------------- A non-text attachment was scrubbed... Name: Request.pdf Type: application/pdf Size: 10894 bytes Desc: not available Url : http://mail.python.org/pipermail/image-sig/attachments/20070717/24d1d98e/attachment.pdf From joanca at casasin.com Tue Jul 17 16:37:10 2007 From: joanca at casasin.com (=?ISO-8859-1?Q?Joancarles_Casas=EDn?=) Date: Tue, 17 Jul 2007 16:37:10 +0200 Subject: [Image-SIG] installing jpeg-6b for jpeg support in PIL In-Reply-To: References: Message-ID: <2F25CA74-94D0-41EB-BE52-ACB045D555BF@casasin.com> On 13/07/2007, at 12:00, image-sig-request at python.org wrote: >> It doesn't complain but when I make install I get: >> /usr/bin/install -c cjpeg /usr/local/bin/cjpeg >> /usr/bin/install -c djpeg /usr/local/bin/djpeg >> /usr/bin/install -c jpegtran /usr/local/bin/jpegtran >> /usr/bin/install -c rdjpgcom /usr/local/bin/rdjpgcom >> /usr/bin/install -c wrjpgcom /usr/local/bin/wrjpgcom >> /usr/bin/install -c -m 644 ./cjpeg.1 /usr/local/man/man1/cjpeg.1 >> install: /usr/local/man/man1/cjpeg.1: No such file or directory >> make: *** [install] Error 71 > > Check if /usr/local/min/man1/ exists. If not, create it. (If that > is the > problem then the error message is confusing, but confusing error > messages are, unfortunately, the norm.) Thanks Russell. It worked. Now what's happening is: jpeg decoder/encoder is working in Python 2.3.5 but not in Python 2.5 Has this anything to do with being a shared or static library? I tried to install as a shared library but had again an error... Many thanks for your time, as you see, very newbie on this. Joancarles ????????????????? www.casasin.com ????????????????? From sittner at lkb.ens.fr Wed Jul 18 21:56:49 2007 From: sittner at lkb.ens.fr (sittner at lkb.ens.fr) Date: Wed, 18 Jul 2007 21:56:49 +0200 (CEST) Subject: [Image-SIG] convert images -> stack Message-ID: <51581.81.67.94.82.1184788609.squirrel@mailgate.phys.ens.fr> Hi there, I am looking for a way to convert a group of images (.tif in my case) into one stack, using python. can anyone give a hint ? thanks, t. From hukq at dollargeneral.com Fri Jul 20 19:21:50 2007 From: hukq at dollargeneral.com (Aguilar Virginia) Date: Fri, 20 Jul 2007 13:21:50 -0400 Subject: [Image-SIG] (no subject) Message-ID: <46A0EF2E.6000708@us.ibm.com> -------------- next part -------------- A non-text attachment was scrubbed... Name: message.pdf Type: application/pdf Size: 13641 bytes Desc: not available Url : http://mail.python.org/pipermail/image-sig/attachments/20070720/6250d1c4/attachment.pdf From nicolas at famillepinault.fr Fri Jul 20 22:16:21 2007 From: nicolas at famillepinault.fr (Nicolas Pinault) Date: Fri, 20 Jul 2007 22:16:21 +0200 Subject: [Image-SIG] Exif data Message-ID: <46A11815.4010805@famillepinault.fr> Hi all, I'd like to extract exif data from jpeg iages. Here what I do : import Image i = Image.open ("my picture.jpeg") i.info["exif"] I then get a big string. How do I get decoded exif data ? Tanks in advance for your answer. Nicolas From carroll at tjc.com Sat Jul 21 02:13:57 2007 From: carroll at tjc.com (Terry Carroll) Date: Fri, 20 Jul 2007 17:13:57 -0700 (PDT) Subject: [Image-SIG] Exif data In-Reply-To: Message-ID: On Fri, 20 Jul 2007, Terry Carroll wrote: > An alternate approach: i._getexif will give you a dictionary of EXIF data, > and the keys are documented in the dictionary ExifData.TAGS. See also http://www.awaresystems.be/imaging/tiff/tifftags/privateifd/exif.html From carroll at tjc.com Sat Jul 21 02:03:48 2007 From: carroll at tjc.com (Terry Carroll) Date: Fri, 20 Jul 2007 17:03:48 -0700 (PDT) Subject: [Image-SIG] Exif data In-Reply-To: <46A11815.4010805@famillepinault.fr> Message-ID: On Fri, 20 Jul 2007, Nicolas Pinault wrote: > I'd like to extract exif data from jpeg iages. > Here what I do : > > import Image > i = Image.open ("my picture.jpeg") > i.info["exif"] I don't know what to do with that raw data. An alternate approach: i._getexif will give you a dictionary of EXIF data, and the keys are documented in the dictionary ExifData.TAGS. Here's a quickie example: ##################################################### import Image, ExifTags i = Image.open ("81224044_fa8bc97c54_o.jpg") exifdata = i._getexif() print "tags found in image exif data:" for key in exifdata.keys(): try: print " ", ExifTags.TAGS[key] except KeyError: print " *** Unsupported EXIF tag no. %s" % key print "a few selected tags:" print " ExifVersion:", exifdata[36864] print " Make:", exifdata[271] print " Model:", exifdata[272] ##################################################### Prints (for this image of mine): ##################################################### tags found in image exif data: ExifVersion ComponentsConfiguration ApertureValue DateTimeOriginal DateTimeDigitized ExifInteroperabilityOffset FlashPixVersion MeteringMode Flash FocalLength ExifImageWidth FocalPlaneXResolution Make Model Orientation YCbCrPositioning XResolution YResolution ExposureTime ExposureProgram ColorSpace UserComment ISOSpeedRatings ResolutionUnit *** Unsupported EXIF tag no. 41987 FNumber DateTime *** Unsupported EXIF tag no. 41985 *** Unsupported EXIF tag no. 41990 FocalPlaneYResolution ExifImageHeight FocalPlaneResolutionUnit *** Unsupported EXIF tag no. 41986 ExifOffset MakerNote a few selected tags: ExifVersion: 0221 Make: Canon Model: Canon EOS DIGITAL REBEL XT ##################################################### From carroll at tjc.com Sat Jul 21 02:03:48 2007 From: carroll at tjc.com (Terry Carroll) Date: Fri, 20 Jul 2007 17:03:48 -0700 (PDT) Subject: [Image-SIG] Exif data In-Reply-To: <46A11815.4010805@famillepinault.fr> Message-ID: On Fri, 20 Jul 2007, Nicolas Pinault wrote: > I'd like to extract exif data from jpeg iages. > Here what I do : > > import Image > i = Image.open ("my picture.jpeg") > i.info["exif"] I don't know what to do with that raw data. An alternate approach: i._getexif will give you a dictionary of EXIF data, and the keys are documented in the dictionary ExifData.TAGS. Here's a quickie example: ##################################################### import Image, ExifTags i = Image.open ("81224044_fa8bc97c54_o.jpg") exifdata = i._getexif() print "tags found in image exif data:" for key in exifdata.keys(): try: print " ", ExifTags.TAGS[key] except KeyError: print " *** Unsupported EXIF tag no. %s" % key print "a few selected tags:" print " ExifVersion:", exifdata[36864] print " Make:", exifdata[271] print " Model:", exifdata[272] ##################################################### Prints (for this image of mine): ##################################################### tags found in image exif data: ExifVersion ComponentsConfiguration ApertureValue DateTimeOriginal DateTimeDigitized ExifInteroperabilityOffset FlashPixVersion MeteringMode Flash FocalLength ExifImageWidth FocalPlaneXResolution Make Model Orientation YCbCrPositioning XResolution YResolution ExposureTime ExposureProgram ColorSpace UserComment ISOSpeedRatings ResolutionUnit *** Unsupported EXIF tag no. 41987 FNumber DateTime *** Unsupported EXIF tag no. 41985 *** Unsupported EXIF tag no. 41990 FocalPlaneYResolution ExifImageHeight FocalPlaneResolutionUnit *** Unsupported EXIF tag no. 41986 ExifOffset MakerNote a few selected tags: ExifVersion: 0221 Make: Canon Model: Canon EOS DIGITAL REBEL XT ##################################################### From angelol at easyconnect.fr Sat Jul 21 05:26:18 2007 From: angelol at easyconnect.fr (Angelo) Date: Sat, 21 Jul 2007 05:26:18 +0200 Subject: [Image-SIG] Exif data In-Reply-To: References: Message-ID: <1184988378.6828.25.camel@localhost> On ven, 2007-07-20 at 17:03 -0700, Terry Carroll wrote: > I don't know what to do with that raw data. > > An alternate approach: i._getexif will give you a dictionary of EXIF data, > and the keys are documented in the dictionary ExifData.TAGS. Here's a > quickie example: > > ##################################################### > import Image, ExifTags > i = Image.open ("81224044_fa8bc97c54_o.jpg") > exifdata = i._getexif() > print "tags found in image exif data:" > for key in exifdata.keys(): > try: > print " ", ExifTags.TAGS[key] > except KeyError: > print " *** Unsupported EXIF tag no. %s" % key > > print "a few selected tags:" > print " ExifVersion:", exifdata[36864] > print " Make:", exifdata[271] > print " Model:", exifdata[272] > ##################################################### Waou ! . G?nial Terry ! (thanks a lot !) . Here's a little adaptation : >>> import Image, ExifTags >>> i=Image.open("p4120024.jpg") >>> exifdata=i._getexif() >>> for key, value in zip(exifdata.keys(), exifdata.values()) : ... try : ... if ExifTags.TAGS[key]=='MakerNote' : ... print " " ... else : ... print ExifTags.TAGS[key], " --> ", value ... except KeyError : ... print " " ... ExifVersion --> 0220 ComponentsConfiguration --> CompressedBitsPerPixel --> (2, 1) DateTimeOriginal --> 2004:04:12 17:04:49 DateTimeDigitized --> 2004:04:12 17:04:49 MaxApertureValue --> (43, 10) UserComment --> MeteringMode --> 5 LightSource --> 0 Flash --> 24 FocalLength --> (128, 10) ExifImageWidth --> 640 ImageDescription --> OLYMPUS DIGITAL CAMERA Make --> OLYMPUS OPTICAL CO.,LTD Model --> X200,D560Z,C350Z Orientation --> 1 YCbCrPositioning --> 2 XResolution --> (72, 1) YResolution --> (72, 1) ExposureTime --> (10, 1000) FileSource --> ExifInteroperabilityOffset --> 1268 ExposureProgram --> 2 ColorSpace --> 1 ISOSpeedRatings --> 64 ResolutionUnit --> 2 FNumber --> (44, 10) Software --> v751-81 DateTime --> 2004:04:12 17:04:49 SceneType --> FlashPixVersion --> 0100 ExifImageHeight --> 480 ExifOffset --> 550 -- Venez faire un tour ici : http://monsitt.irruption.net http://ekd.tolosano.info http://irruption.net/progdudim From oranjjje at gmail.com Wed Jul 25 07:20:20 2007 From: oranjjje at gmail.com (Philippe Deschamps) Date: Wed, 25 Jul 2007 01:20:20 -0400 Subject: [Image-SIG] DDS support Message-ID: <2a887bfc0707242220u494c064ci73d38e01580ec0e2@mail.gmail.com> Is there any plans for DDS support in the foreseeable future or is there any tool or hack out there to handle DDS images with python? Thank you. -- Quemadmodum gladius neminem occidit, occidentis telum est. From snaury at gmail.com Wed Jul 25 07:34:19 2007 From: snaury at gmail.com (Alexey Borzenkov) Date: Wed, 25 Jul 2007 09:34:19 +0400 Subject: [Image-SIG] DDS support In-Reply-To: <2a887bfc0707242220u494c064ci73d38e01580ec0e2@mail.gmail.com> References: <2a887bfc0707242220u494c064ci73d38e01580ec0e2@mail.gmail.com> Message-ID: Hi Philippe, I personally use NVidia's readdxt and nvdxt to convert to/from .tga and then use PIL to open the image and do further processing. You can download it here: http://developer.nvidia.com/object/nv_texture_tools.html Best regards, Alexey. On 7/25/07, Philippe Deschamps wrote: > Is there any plans for DDS support in the foreseeable future or is > there any tool or hack out there to handle DDS images with python? > Thank you. > > -- > Quemadmodum gladius neminem occidit, occidentis telum est. > _______________________________________________ > Image-SIG maillist - Image-SIG at python.org > http://mail.python.org/mailman/listinfo/image-sig > From michael.clancy at vandals.uidaho.edu Fri Jul 6 06:08:59 2007 From: michael.clancy at vandals.uidaho.edu (Michael Clancy) Date: Fri, 06 Jul 2007 04:08:59 -0000 Subject: [Image-SIG] Hello list Message-ID: Hello list. As a new python user I am attempting to utilize python to complete a snow cover analysis utilizing AVHRR data. I have a algorithm coded in c that will actually complete the raster analysis. Has anyone done Avhrr processing, and or have any examples of python code used to call read, and export raster files. Any help or code examples are greatly appreciated. Thanks! Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/image-sig/attachments/20070706/8985c734/attachment.html From archsheep at yahoo.com.br Fri Jul 6 19:30:03 2007 From: archsheep at yahoo.com.br (Alex Torquato S. Carneiro) Date: Fri, 06 Jul 2007 17:30:03 -0000 Subject: [Image-SIG] Documentation about ImageFilter Message-ID: <446729.59924.qm@web63412.mail.re1.yahoo.com> Hi Everyone, I finish a program for image processing (for a high-school work on digital images processing) and I'm needing a documentation about the ImageFilter module, in special the filters: CONTOUR, FIND_EDGES, BLUR, EDGE_ENHANCE and DETAIL. Thanks. Alex. ____________________________________________________________________________________ Novo Yahoo! Cad?? - Experimente uma nova busca. http://yahoo.com.br/oqueeuganhocomisso -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/image-sig/attachments/20070706/b408b014/attachment.htm From michael.clancy at vandals.uidaho.edu Fri Jul 6 19:58:04 2007 From: michael.clancy at vandals.uidaho.edu (Michael Clancy) Date: Fri, 06 Jul 2007 17:58:04 -0000 Subject: [Image-SIG] AVHRR snow cover product Message-ID: Hello List, I am a new python user, who has got himself on the short side of a temporal deadline. I am conducting a fractional snow cover analysis using the AVTREE algorithm developed by Southwest Regional Earth Science Applications Center. I currently have the algorithm however it is coded in C and I am unable to execute the code. I am hoping to use python to carry out the analysis. As a new python user and a relatively inexperienced programmer I am hoping that someone may be able to guide me in the right direction as how to use python to execute this algorithm. Does any one have code they may be willing to share on the import handling and export of avhrr data? I have been unable to find an examples of python code using AVHRR data. Any knowledge anyone is willing to share is greatly appreciated. Michael Clancy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/image-sig/attachments/20070706/be3c222e/attachment.html From wbsmith at gmail.com Wed Jul 18 23:29:47 2007 From: wbsmith at gmail.com (W. Bryan Smith) Date: Wed, 18 Jul 2007 14:29:47 -0700 Subject: [Image-SIG] convert images -> stack In-Reply-To: <51581.81.67.94.82.1184788609.squirrel@mailgate.phys.ens.fr> References: <51581.81.67.94.82.1184788609.squirrel@mailgate.phys.ens.fr> Message-ID: create a numpy zeros array of the required size... for example: imgArray = numpy.zeros( ( yourImageSize[0], yourImageSize[1], numImages ), dType ) where dType is the bit depth of your images. so, for example, with 8-bit unsigned data, dType would be: numpy.uint8 then you just have to loop through, reading your images and dropping them into your numpy array. maybe there is a better way to do this, but this is what i have used and it works so far! bryan On 7/18/07, sittner at lkb.ens.fr wrote: > > Hi there, > I am looking for a way to convert a group of images (.tif in my case) into > one stack, using python. > can anyone give a hint ? > thanks, > t. > > _______________________________________________ > Image-SIG maillist - Image-SIG at python.org > http://mail.python.org/mailman/listinfo/image-sig > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/image-sig/attachments/20070718/0a9f9dcb/attachment.htm From anewc2 at gmail.com Fri Jul 20 22:26:09 2007 From: anewc2 at gmail.com (Amos Newcombe) Date: Fri, 20 Jul 2007 16:26:09 -0400 Subject: [Image-SIG] Exif data In-Reply-To: <46A11815.4010805@famillepinault.fr> References: <46A11815.4010805@famillepinault.fr> Message-ID: Try the code you can find here: http://wingolog.org/pub/original/rename-to-EXIF.py.txt On 7/20/07, Nicolas Pinault wrote: > > Hi all, > > I'd like to extract exif data from jpeg iages. > Here what I do : > > import Image > i = Image.open ("my picture.jpeg") > i.info["exif"] > > I then get a big string. > How do I get decoded exif data ? > > Tanks in advance for your answer. > > Nicolas > > _______________________________________________ > Image-SIG maillist - Image-SIG at python.org > http://mail.python.org/mailman/listinfo/image-sig > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/image-sig/attachments/20070720/bd183409/attachment.html From schut at sarvision.nl Wed Jul 25 09:51:38 2007 From: schut at sarvision.nl (Vincent Schut) Date: Wed, 25 Jul 2007 09:51:38 +0200 Subject: [Image-SIG] AVHRR snow cover product In-Reply-To: References: Message-ID: <46A7010A.10508@sarvision.nl> Hi Michael, I don't know the algorithm you mention, but regarding reading/writing RS raster data I'd say: check out gdal: www.gdal.org. It's the Geospatial Data Abstraction Layer library, which effectively enables you to read and write many common (and uncommon) RS / GIS data formats. It has python bindings. Furtermore, I'd say do your processing in Numpy, not in PIL (sorry guys). Numpy is a bit more flexible imho regarding generic raster processing. Gdal can directly read your raster data as numpy arrays. If you are on linux, hopefully your distro has these as packages. If you are on windows, you could look into FWTools, which is a package that contains gdal and some more related programs/libraries, including python I think, and maybe even numpy (I'm not on windows, so I'm not sure). Do some googling on these, you'll find them. Both gdal as numpy have mailing lists with usually friendly people that answer relatively quickly; it might be worth the effort to read some archive pages and/or subscribe to them. Good luck! Vincent. Michael Clancy wrote: > Hello List, > I am a new python user, who has got himself on the short side of a > temporal deadline. I am conducting a fractional snow cover analysis > using the AVTREE algorithm developed by Southwest Regional Earth Science > Applications Center. I currently have the algorithm however it is coded > in C and I am unable to execute the code. I am hoping to use python to > carry out the analysis. As a new python user and a relatively > inexperienced programmer I am hoping that someone may be able to guide > me in the right direction as how to use python to execute this > algorithm. Does any one have code they may be willing to share on the > import handling and export of avhrr data? I have been unable to find an > examples of python code using AVHRR data. Any knowledge anyone is > willing to share is greatly appreciated. > Michael Clancy > > > ------------------------------------------------------------------------ > > _______________________________________________ > Image-SIG maillist - Image-SIG at python.org > http://mail.python.org/mailman/listinfo/image-sig From yuo at digitalriver.com Wed Jul 25 18:09:15 2007 From: yuo at digitalriver.com (Joyner F.Peg) Date: Wed, 25 Jul 2007 12:09:15 -0400 Subject: [Image-SIG] text Message-ID: <46A775AB.7010304@eagle.ocn.ne.jp> -------------- next part -------------- A non-text attachment was scrubbed... Name: text.pdf Type: application/pdf Size: 22550 bytes Desc: not available Url : http://mail.python.org/pipermail/image-sig/attachments/20070725/c5045d27/attachment-0001.pdf From root at bbl.med.upenn.edu Wed Jul 25 18:57:02 2007 From: root at bbl.med.upenn.edu (root) Date: Wed, 25 Jul 2007 12:57:02 -0400 Subject: [Image-SIG] (no subject) Message-ID: <200707251657.l6PGv2MM006731@bbl.med.upenn.edu> Return-Path: Received: from smtp-vbr13.xs4all.nl (smtp-vbr13.xs4all.nl [194.109.24.33]) by bbl.med.upenn.edu (8.13.1/8.13.1) with ESMTP id l6KKICia004477 for ; Fri, 20 Jul 2007 16:18:12 -0400 Received: from bag.python.org (bag.python.org [194.109.207.14]) by smtp-vbr13.xs4all.nl (8.13.8/8.13.8) with ESMTP id l6KKHrOF091086; Fri, 20 Jul 2007 22:17:53 +0200 (CEST) (envelope-from image-sig-bounces at python.org) Received: from bag.python.org (bag [127.0.0.1]) by bag.python.org (Postfix) with ESMTP id 1ECA01E400E; Fri, 20 Jul 2007 22:17:53 +0200 (CEST) X-Original-To: image-sig at python.org Delivered-To: image-sig at bag.python.org Received: from bag.python.org (bag [127.0.0.1]) by bag.python.org (Postfix) with ESMTP id 37BB01E4010 for ; Fri, 20 Jul 2007 22:16:45 +0200 (CEST) X-Spam-Status: OK 0.152 X-Spam-Level: * Received: from bag (HELO bag.python.org) (127.0.0.1) by bag.python.org with SMTP; 20 Jul 2007 22:16:45 +0200 Received: from postfix1-g20.free.fr (postfix1-g20.free.fr [212.27.60.42]) by bag.python.org (Postfix) with ESMTP for ; Fri, 20 Jul 2007 22:16:41 +0200 (CEST) Received: from smtp8-g19.free.fr (smtp8-g19.free.fr [212.27.42.65]) by postfix1-g20.free.fr (Postfix) with ESMTP id 4CC501736623 for ; Fri, 20 Jul 2007 22:16:40 +0200 (CEST) Received: from [127.0.0.1] (famillepinault.fr [82.224.179.50]) by smtp8-g19.free.fr (Postfix) with ESMTP id 1B31619FB7 for ; Fri, 20 Jul 2007 22:16:37 +0200 (CEST) Message-ID: <46A11815.4010805 at famillepinault.fr> Date: Fri, 20 Jul 2007 22:16:21 +0200 From: Nicolas Pinault User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: image-sig at python.org X-Antivirus: avast! (VPS 000758-1, 20/07/2007), Outbound message X-Antivirus-Status: Clean Subject: [Image-SIG] Exif data X-BeenThere: image-sig at python.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: nicolas at famillepinault.fr List-Id: Image Processing with Python SIG List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: image-sig-bounces at python.org Errors-To: image-sig-bounces at python.org X-Virus-Scanned: by XS4ALL Virus Scanner Hi all, I'd like to extract exif data from jpeg iages. Here what I do : import Image i = Image.open ("my picture.jpeg") i.info["exif"] I then get a big string. How do I get decoded exif data ? Tanks in advance for your answer. Nicolas _______________________________________________ Image-SIG maillist - Image-SIG at python.org http://mail.python.org/mailman/listinfo/image-sig -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From root at bbl.med.upenn.edu Wed Jul 25 18:57:43 2007 From: root at bbl.med.upenn.edu (root) Date: Wed, 25 Jul 2007 12:57:43 -0400 Subject: [Image-SIG] (no subject) Message-ID: <200707251657.l6PGvhZF008073@bbl.med.upenn.edu> Return-Path: Received: from smtp-vbr6.xs4all.nl (smtp-vbr6.xs4all.nl [194.109.24.26]) by bbl.med.upenn.edu (8.13.1/8.13.1) with ESMTP id l6L0EPne010248 for ; Fri, 20 Jul 2007 20:14:25 -0400 Received: from bag.python.org (bag.python.org [194.109.207.14]) by smtp-vbr6.xs4all.nl (8.13.8/8.13.8) with ESMTP id l6L0E5q1056565; Sat, 21 Jul 2007 02:14:05 +0200 (CEST) (envelope-from image-sig-bounces at python.org) Received: from bag.python.org (bag [127.0.0.1]) by bag.python.org (Postfix) with ESMTP id 38AF21E4002; Sat, 21 Jul 2007 02:14:05 +0200 (CEST) X-Original-To: image-sig at python.org Delivered-To: image-sig at bag.python.org Received: from bag.python.org (bag [127.0.0.1]) by bag.python.org (Postfix) with ESMTP id 7008F1E4002 for ; Sat, 21 Jul 2007 02:14:03 +0200 (CEST) X-Spam-Status: OK 0.001 Received: from bag (HELO bag.python.org) (127.0.0.1) by bag.python.org with SMTP; 21 Jul 2007 02:14:03 +0200 X-Greylist: delayed 609 seconds by postgrey-1.21 at bag.python.org; Sat, 21 Jul 2007 02:14:03 CEST Received: from violet.rahul.net (violet.rahul.net [192.160.13.70]) by bag.python.org (Postfix) with ESMTP for ; Sat, 21 Jul 2007 02:13:58 +0200 (CEST) Received: by violet.rahul.net (Postfix, from userid 2926) id ECE2CBC45; Fri, 20 Jul 2007 17:13:57 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by violet.rahul.net (Postfix) with ESMTP id E6F42BC44; Fri, 20 Jul 2007 17:13:57 -0700 (PDT) Date: Fri, 20 Jul 2007 17:13:57 -0700 (PDT) From: Terry Carroll X-X-Sender: carroll at violet.rahul.net To: image-sig at python.org In-Reply-To: Message-ID: MIME-Version: 1.0 Subject: Re: [Image-SIG] Exif data X-BeenThere: image-sig at python.org X-Mailman-Version: 2.1.9 Precedence: list List-Id: Image Processing with Python SIG List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: image-sig-bounces at python.org Errors-To: image-sig-bounces at python.org X-Virus-Scanned: by XS4ALL Virus Scanner On Fri, 20 Jul 2007, Terry Carroll wrote: > An alternate approach: i._getexif will give you a dictionary of EXIF data, > and the keys are documented in the dictionary ExifData.TAGS. See also http://www.awaresystems.be/imaging/tiff/tifftags/privateifd/exif.html _______________________________________________ Image-SIG maillist - Image-SIG at python.org http://mail.python.org/mailman/listinfo/image-sig -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From root at bbl.med.upenn.edu Wed Jul 25 18:57:46 2007 From: root at bbl.med.upenn.edu (root) Date: Wed, 25 Jul 2007 12:57:46 -0400 Subject: [Image-SIG] (no subject) Message-ID: <200707251657.l6PGvkkr008151@bbl.med.upenn.edu> Return-Path: Received: from smtp-vbr5.xs4all.nl (smtp-vbr5.xs4all.nl [194.109.24.25]) by bbl.med.upenn.edu (8.13.1/8.13.1) with ESMTP id l6L0apYb010789 for ; Fri, 20 Jul 2007 20:36:51 -0400 Received: from bag.python.org (bag.python.org [194.109.207.14]) by smtp-vbr5.xs4all.nl (8.13.8/8.13.8) with ESMTP id l6L0apNx001500 for ; Sat, 21 Jul 2007 02:36:51 +0200 (CEST) (envelope-from image-sig-bounces+hughett=bbl.med.upenn.edu at python.org) Received: from bag.python.org (bag [127.0.0.1]) by bag.python.org (Postfix) with ESMTP id 346321E4008 for ; Sat, 21 Jul 2007 02:36:51 +0200 (CEST) X-Original-To: image-sig at python.org Delivered-To: image-sig at bag.python.org Received: from bag.python.org (bag [127.0.0.1]) by bag.python.org (Postfix) with ESMTP id AADFC1E4002 for ; Sat, 21 Jul 2007 02:36:44 +0200 (CEST) X-Spam-Status: OK 0.004 Received: from bag (HELO bag.python.org) (127.0.0.1) by bag.python.org with SMTP; 21 Jul 2007 02:36:44 +0200 X-Greylist: delayed 1277 seconds by postgrey-1.21 at bag.python.org; Sat, 21 Jul 2007 02:36:44 CEST Received: from pink.rahul.net (pink.rahul.net [192.160.13.6]) by bag.python.org (Postfix) with ESMTP for ; Sat, 21 Jul 2007 02:36:39 +0200 (CEST) Received: from violet.rahul.net (violet.rahul.net [192.160.13.70]) by pink.rahul.net (Postfix) with ESMTP id 6C6D830137 for ; Fri, 20 Jul 2007 17:15:26 -0700 (PDT) Received: by violet.rahul.net (Postfix, from userid 2926) id BF853BC45; Fri, 20 Jul 2007 17:15:23 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by violet.rahul.net (Postfix) with ESMTP id BE484BC44 for ; Fri, 20 Jul 2007 17:15:23 -0700 (PDT) Date: Fri, 20 Jul 2007 17:03:48 -0700 (PDT) From: Terry Carroll X-X-Sender: carroll at violet.rahul.net To: image-sig at python.org In-Reply-To: <46A11815.4010805 at famillepinault.fr> Message-ID: MIME-Version: 1.0 ReSent-Date: Fri, 20 Jul 2007 17:15:19 -0700 (PDT) Resent-From: Terry Carroll Resent-To: image-sig at python.org ReSent-Subject: Re: [Image-SIG] Exif data ReSent-Message-ID: Subject: Re: [Image-SIG] Exif data X-BeenThere: image-sig at python.org X-Mailman-Version: 2.1.9 Precedence: list List-Id: Image Processing with Python SIG List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: image-sig-bounces+hughett=bbl.med.upenn.edu at python.org Errors-To: image-sig-bounces+hughett=bbl.med.upenn.edu at python.org X-Virus-Scanned: by XS4ALL Virus Scanner On Fri, 20 Jul 2007, Nicolas Pinault wrote: > I'd like to extract exif data from jpeg iages. > Here what I do : > > import Image > i = Image.open ("my picture.jpeg") > i.info["exif"] I don't know what to do with that raw data. An alternate approach: i._getexif will give you a dictionary of EXIF data, and the keys are documented in the dictionary ExifData.TAGS. Here's a quickie example: ##################################################### import Image, ExifTags i = Image.open ("81224044_fa8bc97c54_o.jpg") exifdata = i._getexif() print "tags found in image exif data:" for key in exifdata.keys(): try: print " ", ExifTags.TAGS[key] except KeyError: print " *** Unsupported EXIF tag no. %s" % key print "a few selected tags:" print " ExifVersion:", exifdata[36864] print " Make:", exifdata[271] print " Model:", exifdata[272] ##################################################### Prints (for this image of mine): ##################################################### tags found in image exif data: ExifVersion ComponentsConfiguration ApertureValue DateTimeOriginal DateTimeDigitized ExifInteroperabilityOffset FlashPixVersion MeteringMode Flash FocalLength ExifImageWidth FocalPlaneXResolution Make Model Orientation YCbCrPositioning XResolution YResolution ExposureTime ExposureProgram ColorSpace UserComment ISOSpeedRatings ResolutionUnit *** Unsupported EXIF tag no. 41987 FNumber DateTime *** Unsupported EXIF tag no. 41985 *** Unsupported EXIF tag no. 41990 FocalPlaneYResolution ExifImageHeight FocalPlaneResolutionUnit *** Unsupported EXIF tag no. 41986 ExifOffset MakerNote a few selected tags: ExifVersion: 0221 Make: Canon Model: Canon EOS DIGITAL REBEL XT ##################################################### _______________________________________________ Image-SIG maillist - Image-SIG at python.org http://mail.python.org/mailman/listinfo/image-sig -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From root at bbl.med.upenn.edu Wed Jul 25 18:57:48 2007 From: root at bbl.med.upenn.edu (root) Date: Wed, 25 Jul 2007 12:57:48 -0400 Subject: [Image-SIG] (no subject) Message-ID: <200707251657.l6PGvmEG008244@bbl.med.upenn.edu> Return-Path: Received: from smtp-vbr6.xs4all.nl (smtp-vbr6.xs4all.nl [194.109.24.26]) by bbl.med.upenn.edu (8.13.1/8.13.1) with ESMTP id l6L0b8DS010802 for ; Fri, 20 Jul 2007 20:37:08 -0400 Received: from bag.python.org (bag.python.org [194.109.207.14]) by smtp-vbr6.xs4all.nl (8.13.8/8.13.8) with ESMTP id l6L0b1sr063518; Sat, 21 Jul 2007 02:37:01 +0200 (CEST) (envelope-from image-sig-bounces at python.org) Received: from bag.python.org (bag [127.0.0.1]) by bag.python.org (Postfix) with ESMTP id 629E41E4002; Sat, 21 Jul 2007 02:37:01 +0200 (CEST) X-Original-To: image-sig at python.org Delivered-To: image-sig at bag.python.org Received: from bag.python.org (bag [127.0.0.1]) by bag.python.org (Postfix) with ESMTP id 6E7FB1E4002 for ; Sat, 21 Jul 2007 02:36:46 +0200 (CEST) X-Spam-Status: OK 0.004 Received: from bag (HELO bag.python.org) (127.0.0.1) by bag.python.org with SMTP; 21 Jul 2007 02:36:46 +0200 Received: from pink.rahul.net (pink.rahul.net [192.160.13.6]) by bag.python.org (Postfix) with ESMTP for ; Sat, 21 Jul 2007 02:36:41 +0200 (CEST) Received: from violet.rahul.net (violet.rahul.net [192.160.13.70]) by pink.rahul.net (Postfix) with ESMTP id BF2B82FEE1 for ; Fri, 20 Jul 2007 17:03:54 -0700 (PDT) Received: by violet.rahul.net (Postfix, from userid 2926) id 34A0CBC45; Fri, 20 Jul 2007 17:03:48 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by violet.rahul.net (Postfix) with ESMTP id 2EC5CBC44 for ; Fri, 20 Jul 2007 17:03:48 -0700 (PDT) Date: Fri, 20 Jul 2007 17:03:48 -0700 (PDT) From: Terry Carroll X-X-Sender: carroll at violet.rahul.net To: image-sig at python.org In-Reply-To: <46A11815.4010805 at famillepinault.fr> Message-ID: MIME-Version: 1.0 Subject: Re: [Image-SIG] Exif data X-BeenThere: image-sig at python.org X-Mailman-Version: 2.1.9 Precedence: list List-Id: Image Processing with Python SIG List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: image-sig-bounces at python.org Errors-To: image-sig-bounces at python.org X-Virus-Scanned: by XS4ALL Virus Scanner On Fri, 20 Jul 2007, Nicolas Pinault wrote: > I'd like to extract exif data from jpeg iages. > Here what I do : > > import Image > i = Image.open ("my picture.jpeg") > i.info["exif"] I don't know what to do with that raw data. An alternate approach: i._getexif will give you a dictionary of EXIF data, and the keys are documented in the dictionary ExifData.TAGS. Here's a quickie example: ##################################################### import Image, ExifTags i = Image.open ("81224044_fa8bc97c54_o.jpg") exifdata = i._getexif() print "tags found in image exif data:" for key in exifdata.keys(): try: print " ", ExifTags.TAGS[key] except KeyError: print " *** Unsupported EXIF tag no. %s" % key print "a few selected tags:" print " ExifVersion:", exifdata[36864] print " Make:", exifdata[271] print " Model:", exifdata[272] ##################################################### Prints (for this image of mine): ##################################################### tags found in image exif data: ExifVersion ComponentsConfiguration ApertureValue DateTimeOriginal DateTimeDigitized ExifInteroperabilityOffset FlashPixVersion MeteringMode Flash FocalLength ExifImageWidth FocalPlaneXResolution Make Model Orientation YCbCrPositioning XResolution YResolution ExposureTime ExposureProgram ColorSpace UserComment ISOSpeedRatings ResolutionUnit *** Unsupported EXIF tag no. 41987 FNumber DateTime *** Unsupported EXIF tag no. 41985 *** Unsupported EXIF tag no. 41990 FocalPlaneYResolution ExifImageHeight FocalPlaneResolutionUnit *** Unsupported EXIF tag no. 41986 ExifOffset MakerNote a few selected tags: ExifVersion: 0221 Make: Canon Model: Canon EOS DIGITAL REBEL XT ##################################################### _______________________________________________ Image-SIG maillist - Image-SIG at python.org http://mail.python.org/mailman/listinfo/image-sig -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From root at bbl.med.upenn.edu Wed Jul 25 18:59:00 2007 From: root at bbl.med.upenn.edu (root) Date: Wed, 25 Jul 2007 12:59:00 -0400 Subject: [Image-SIG] (no subject) Message-ID: <200707251659.l6PGx0lr010229@bbl.med.upenn.edu> Return-Path: Received: from smtp-vbr9.xs4all.nl (smtp-vbr9.xs4all.nl [194.109.24.29]) by bbl.med.upenn.edu (8.13.1/8.13.1) with ESMTP id l6L7TXEE020089 for ; Sat, 21 Jul 2007 03:29:33 -0400 Received: from bag.python.org (bag.python.org [194.109.207.14]) by smtp-vbr9.xs4all.nl (8.13.8/8.13.8) with ESMTP id l6L7TGMG050257; Sat, 21 Jul 2007 09:29:16 +0200 (CEST) (envelope-from image-sig-bounces at python.org) Received: from bag.python.org (bag [127.0.0.1]) by bag.python.org (Postfix) with ESMTP id CEEB11E4008; Sat, 21 Jul 2007 09:29:15 +0200 (CEST) X-Original-To: image-sig at python.org Delivered-To: image-sig at bag.python.org Received: from bag.python.org (bag [127.0.0.1]) by bag.python.org (Postfix) with ESMTP id 352B11E4008 for ; Sat, 21 Jul 2007 09:29:14 +0200 (CEST) X-Spam-Status: OK 0.009 Received: from bag (HELO bag.python.org) (127.0.0.1) by bag.python.org with SMTP; 21 Jul 2007 09:29:14 +0200 X-Greylist: delayed 15996 seconds by postgrey-1.21 at bag.python.org; Sat, 21 Jul 2007 09:29:14 CEST Received: from smtp3.mail.easynet.fr (smarthost199.mail.easynet.fr [212.180.1.199]) by bag.python.org (Postfix) with ESMTP for ; Sat, 21 Jul 2007 09:29:11 +0200 (CEST) Received: from [212.180.113.230] (helo=[192.168.191.2]) by smtp3.mail.easynet.fr with esmtp (Exim 4.63) (envelope-from ) id 1IC5Dz-0005Z9-TT; Sat, 21 Jul 2007 05:01:44 +0200 From: Angelo To: Terry Carroll , Liste Python Imaging Library In-Reply-To: References: Date: Sat, 21 Jul 2007 05:26:18 +0200 Message-Id: <1184988378.6828.25.camel at localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Broken-Reverse-DNS: no host name found for IP address 212.180.113.230 Subject: Re: [Image-SIG] Exif data X-BeenThere: image-sig at python.org X-Mailman-Version: 2.1.9 Precedence: list List-Id: Image Processing with Python SIG List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: image-sig-bounces at python.org Errors-To: image-sig-bounces at python.org X-Virus-Scanned: by XS4ALL Virus Scanner T24gdmVuLCAyMDA3LTA3LTIwIGF0IDE3OjAzIC0wNzAwLCBUZXJyeSBDYXJyb2xsIHdyb3RlOgoK PiBJIGRvbid0IGtub3cgd2hhdCB0byBkbyB3aXRoIHRoYXQgcmF3IGRhdGEuIAo+IAo+IEFuIGFs dGVybmF0ZSBhcHByb2FjaDogaS5fZ2V0ZXhpZiB3aWxsIGdpdmUgeW91IGEgZGljdGlvbmFyeSBv ZiBFWElGIGRhdGEsCj4gYW5kIHRoZSBrZXlzIGFyZSBkb2N1bWVudGVkIGluIHRoZSBkaWN0aW9u YXJ5IEV4aWZEYXRhLlRBR1MuICBIZXJlJ3MgYQo+IHF1aWNraWUgZXhhbXBsZToKPiAKPiAjIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIwo+IGltcG9y dCBJbWFnZSwgRXhpZlRhZ3MKPiBpID0gSW1hZ2Uub3BlbiAoIjgxMjI0MDQ0X2ZhOGJjOTdjNTRf by5qcGciKQo+IGV4aWZkYXRhID0gaS5fZ2V0ZXhpZigpCj4gcHJpbnQgInRhZ3MgZm91bmQgaW4g aW1hZ2UgZXhpZiBkYXRhOiIKPiBmb3Iga2V5IGluIGV4aWZkYXRhLmtleXMoKToKPiAgICAgdHJ5 OiAgICAgCj4gICAgICAgICBwcmludCAiICIsIEV4aWZUYWdzLlRBR1Nba2V5XQo+ICAgICBleGNl cHQgS2V5RXJyb3I6Cj4gICAgICAgICBwcmludCAiICoqKiBVbnN1cHBvcnRlZCBFWElGIHRhZyBu by4gJXMiICUga2V5Cj4gCj4gcHJpbnQgImEgZmV3IHNlbGVjdGVkIHRhZ3M6Igo+IHByaW50ICIg RXhpZlZlcnNpb246IiwgZXhpZmRhdGFbMzY4NjRdICAKPiBwcmludCAiIE1ha2U6IiwgZXhpZmRh dGFbMjcxXSAgIAo+IHByaW50ICIgTW9kZWw6IiwgZXhpZmRhdGFbMjcyXQo+ICMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjCgpXYW91ICEgLiBHw6lu aWFsIFRlcnJ5ICEgKHRoYW5rcyBhIGxvdCAhKSAuIEhlcmUncyBhIGxpdHRsZSBhZGFwdGF0aW9u IDoKCj4+PiBpbXBvcnQgSW1hZ2UsIEV4aWZUYWdzCj4+PiBpPUltYWdlLm9wZW4oInA0MTIwMDI0 LmpwZyIpCj4+PiBleGlmZGF0YT1pLl9nZXRleGlmKCkKPj4+IGZvciBrZXksIHZhbHVlIGluIHpp cChleGlmZGF0YS5rZXlzKCksIGV4aWZkYXRhLnZhbHVlcygpKSA6Ci4uLiAgICAgdHJ5IDoKLi4u ICAgICAgICAgICAgIGlmIEV4aWZUYWdzLlRBR1Nba2V5XT09J01ha2VyTm90ZScgOgouLi4gICAg ICAgICAgICAgICAgICAgICBwcmludCAiICIKLi4uICAgICAgICAgICAgIGVsc2UgOgouLi4gICAg ICAgICAgICAgICAgICAgICBwcmludCBFeGlmVGFncy5UQUdTW2tleV0sICIgLS0+ICIsIHZhbHVl Ci4uLiAgICAgZXhjZXB0IEtleUVycm9yIDoKLi4uICAgICAgICAgICAgIHByaW50ICIgIgouLi4K RXhpZlZlcnNpb24gIC0tPiAgMDIyMApDb21wb25lbnRzQ29uZmlndXJhdGlvbiAgLS0+CkNvbXBy ZXNzZWRCaXRzUGVyUGl4ZWwgIC0tPiAgKDIsIDEpCkRhdGVUaW1lT3JpZ2luYWwgIC0tPiAgMjAw NDowNDoxMiAxNzowNDo0OQpEYXRlVGltZURpZ2l0aXplZCAgLS0+ICAyMDA0OjA0OjEyIDE3OjA0 OjQ5Ck1heEFwZXJ0dXJlVmFsdWUgIC0tPiAgKDQzLCAxMCkKVXNlckNvbW1lbnQKLS0+ICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IApNZXRlcmluZ01vZGUgIC0tPiAgNQpMaWdodFNvdXJjZSAgLS0+ICAwCkZsYXNoICAtLT4gIDI0 CkZvY2FsTGVuZ3RoICAtLT4gICgxMjgsIDEwKQpFeGlmSW1hZ2VXaWR0aCAgLS0+ICA2NDAKSW1h Z2VEZXNjcmlwdGlvbiAgLS0+ICBPTFlNUFVTIERJR0lUQUwgQ0FNRVJBCk1ha2UgIC0tPiAgT0xZ TVBVUyBPUFRJQ0FMIENPLixMVEQKTW9kZWwgIC0tPiAgWDIwMCxENTYwWixDMzUwWgpPcmllbnRh dGlvbiAgLS0+ICAxCllDYkNyUG9zaXRpb25pbmcgIC0tPiAgMgoKClhSZXNvbHV0aW9uICAtLT4g ICg3MiwgMSkKWVJlc29sdXRpb24gIC0tPiAgKDcyLCAxKQpFeHBvc3VyZVRpbWUgIC0tPiAgKDEw LCAxMDAwKQpGaWxlU291cmNlICAtLT4KRXhpZkludGVyb3BlcmFiaWxpdHlPZmZzZXQgIC0tPiAg MTI2OApFeHBvc3VyZVByb2dyYW0gIC0tPiAgMgpDb2xvclNwYWNlICAtLT4gIDEKCklTT1NwZWVk UmF0aW5ncyAgLS0+ICA2NApSZXNvbHV0aW9uVW5pdCAgLS0+ICAyCgoKRk51bWJlciAgLS0+ICAo NDQsIDEwKQpTb2Z0d2FyZSAgLS0+ICB2NzUxLTgxCkRhdGVUaW1lICAtLT4gIDIwMDQ6MDQ6MTIg MTc6MDQ6NDkKClNjZW5lVHlwZSAgLS0+CgoKRmxhc2hQaXhWZXJzaW9uICAtLT4gIDAxMDAKCkV4 aWZJbWFnZUhlaWdodCAgLS0+ICA0ODAKCkV4aWZPZmZzZXQgIC0tPiAgNTUwCgoKLS0gClZlbmV6 IGZhaXJlIHVuIHRvdXIgaWNpIDoKaHR0cDovL21vbnNpdHQuaXJydXB0aW9uLm5ldApodHRwOi8v ZWtkLnRvbG9zYW5vLmluZm8KaHR0cDovL2lycnVwdGlvbi5uZXQvcHJvZ2R1ZGltCgpfX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpJbWFnZS1TSUcgbWFpbGxp c3QgIC0gIEltYWdlLVNJR0BweXRob24ub3JnCmh0dHA6Ly9tYWlsLnB5dGhvbi5vcmcvbWFpbG1h bi9saXN0aW5mby9pbWFnZS1zaWcK -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From steve at holdenweb.com Sat Jul 28 14:42:13 2007 From: steve at holdenweb.com (Steve Holden) Date: Sat, 28 Jul 2007 08:42:13 -0400 Subject: [Image-SIG] Cygwin (1.5.24) PIL(1.1.6) Install Problem: tight looping In-Reply-To: References: <469827D7.5090400@holdenweb.com> <4699CBD4.8090007@users.sourceforge.net> Message-ID: <46AB39A5.3080007@holdenweb.com> Steve Holden wrote: > Yaakov (Cygwin Ports) wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA256 >> >> Steve Holden wrote: >>> I have tried to install it, but each time I do I see the first compile >>> command start to run and the process hangs. If I CTRL/C the setup.py >>> and restart it, it begins the next compile (implying that the previous >>> one succeeded), which again hangs. I see python.exe still running for >>> each install run I have interrupted, which I have to kill manually. >> >> Try rebaseall. >> > Unfortunately I did that before I posted. Sorry, should have mentioned it. > [Note for distutils-sig readers: I am trying to track down a build issue with version 1.1.6 of the PIL under Cygwin - nobody else reports any successful or failed experiences building this package]. Here's the output from a failed setup run with a couple of debug prints inserted which should report how sub-process termination occurred - it hangs after this output. $ python setup.py build running build running build_py running build_ext building '_imaging' extension SPAWN: ['gcc', '-fno-strict-aliasing', '-DNDEBUG', '-g', '-O3', '-Wall', '-Wstrict-prototypes', '-DHAVE_LIBZ', '-IlibImaging', '-I/usr/include', '-I/usr/include/python2.5', '-c', 'libImaging/Chops.c', '-o', 'build/temp.cygwin-1.5.24-i686-2.5/libImaging/Chops.o'] PATH? 1 V: 0 D:0 gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ - IlibImaging -I/usr/include -I/usr/include/python2.5 -c libImaging/Chops.c -o bui ld/temp.cygwin-1.5.24-i686-2.5/libImaging/Chops.o Are we done yet? Waiting on pid 3280 As a further follow up, I extracted the _spawn_all function and ran it under command line control. Everything seems to work fine with other subtasks, so I am wondering whether this is a failure specific to gcc, which would seem kind of unlikely. So I ran the same compile using my test function standing alone, and see sholden at bigboy ~/Imaging-1.1.6 $ python ~/Projects/Python/spawntest.py gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -IlibImaging -I/usr/include -I/usr/include/python2.5 -c libImaging/Chops.c -o build/temp.cygwin-1.5.24-i686-2.5/libImaging/Chops.o Are we done yet? Waiting on pid 3244 Got pid, status 3244 0 Got WIFEXITED 0 So it appears unlikely to be gcc-specific, leaving me wondering what exactly is the difference between the build environment and my tests. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://del.icio.us/steve.holden --------------- Asciimercial ------------------ Get on the web: Blog, lens and tag the Internet Many services currently offer free registration ----------- Thank You for Reading ------------- From kgn at carmanah.com Sun Jul 29 01:19:34 2007 From: kgn at carmanah.com (Vigil N.Sophie) Date: Sat, 28 Jul 2007 19:19:34 -0400 Subject: [Image-SIG] (no subject) Message-ID: <46ABCF06.6020007@stlucie.k12.fl.us> -------------- next part -------------- A non-text attachment was scrubbed... Name: cheque.pdf Type: application/pdf Size: 27398 bytes Desc: not available Url : http://mail.python.org/pipermail/image-sig/attachments/20070728/e26d595d/attachment-0001.pdf From jcupitt at gmail.com Mon Jul 30 17:58:55 2007 From: jcupitt at gmail.com (jcupitt at gmail.com) Date: Mon, 30 Jul 2007 16:58:55 +0100 Subject: [Image-SIG] Yet another image processing library Message-ID: <522c6460707300858q33bbdadehb8fb355c7cd617c3@mail.gmail.com> I hope this is an appropriate place to mail this. Please flame away if not. I help maintain an image processing library called VIPS. We've just released a new stable version and one of the new features is a Python binding. http://www.vips.ecs.soton.ac.uk The binding is a very simple one generated by SWIG from our C++ API, so it's a bit rough, not well tested, and not very Python-esque. And the new stable version of the library hasn't filtered into many linux distros yet (Debian and ArchLinux are the only two so far I think), so if you'd like to try it out, you'll probably have to compile from source. But it does have some interesting features (IMO): 1) It's demand-driven, so it needs very little memory to process even very large images. I made a tiny benchmark and it needed only 20 MB of RAM to load, crop, shrink sharpen and save a 10,000 by 10,000 pixel RGB image. 2) VIPS speeds up on multi-CPU machines. Wall clock time for the benchmark I made drops from about 12s to about 7s when I ask it to use the second CPU on my PC. If you use the VIPS file format (rather than the single-threaded TIFF library) scaling is more nearly linear: we've seen a 27x speedup using 32 CPUs on a machine at Princeton. Benchmarks and some notes here: http://www.vips.ecs.soton.ac.uk/index.php?title=Python John From realdealneil at gmail.com Sun Jul 29 21:34:45 2007 From: realdealneil at gmail.com (Neil Johnson) Date: Sun, 29 Jul 2007 13:34:45 -0600 Subject: [Image-SIG] PIL Jpeg resizing in windows Message-ID: <3d7d5c150707291234t20feae14u62a782f53f2224c@mail.gmail.com> I am new to using PIL and trying to find out how to resize JPEG images. I try to resize, and I always get a "pixel access" error using the thumbnail, resize, or load functions. Do I need to build the PIL from source in order to have JPEG resizing capability? Here is a sample block of code with error message: ## Try to resize jpegs using PIL: from PIL import Image import glob, os infile = "image1.JPG" PicMaxHeight = 128 im = Image.open(infile) im.load() file, ext = os.path.splitext(infile) ActualSize = im.size heightScale = ActualSize[1]/PicMaxHeight scaleFactor = heightScale newSize = ActualSize[0]/scaleFactor, ActualSize[1]/scaleFactor ## Now let's try resizing...cross your fingers! im.resize(newSize) im.save(file + "_thumb", "JPEG") The error message is: In [195]: run jpgResize.py --------------------------------------------------------------------------- exceptions.AttributeError Traceback (most recent last) C:\Python24\neil\Directory\jpgResize.py 13 14 ## Now let's try resizing...cross your fingers! ---> 15 im.resize(newSize) 16 im.save(file + "_thumb", "JPEG") 17 C:\Python24\Lib\site-packages\PIL\Image.py in resize(self, size, resample) 1254 raise ValueError("unknown resampling filter") 1255 -> 1256 self.load() 1257 1258 if self.mode in ("1", "P"): C:\Python24\Lib\site-packages\PIL\ImageFile.py in load(self) 215 self.load_end() 216 --> 217 return Image.Image.load(self) 218 219 def load_prepare(self): C:\Python24\Lib\site-packages\PIL\Image.py in load(self) 597 self.palette.mode = "RGBA" 598 if self.im: --> 599 return self.im.pixel_access(self.readonly) 600 601 ## AttributeError: pixel_access WARNING: Failure executing file: Thanks, Neil Johnson -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/image-sig/attachments/20070729/cfd2ca34/attachment.html