From zaphod.beeblebrox at freesurf.ch Sat May 1 02:16:29 2004 From: zaphod.beeblebrox at freesurf.ch (Richard Jennings) Date: Sat May 1 02:13:11 2004 Subject: [Image-SIG] First time with PIL Message-ID: <200405010816.29287.zaphod.beeblebrox@freesurf.ch> Hi, I have been using python for sometime and am ecstatic about it. I tried to use PIL for the first time today and I can't get past base 1: Python 2.2 & PIL 1.1.3 on SusE 8.2 My first script was: import Image def center(orImagePath): im = Image.open(orImagePath) new = im.copy() im.save('result.png') if __name__ == '__main__': center('oliverLSig.png') and generated the error: Traceback (most recent call last): File "./magicTest.py", line 13, in ? center('oliverLSig.png') File "./magicTest.py", line 9, in center new = im.copy() File "//usr/lib/python2.2/site-packages/PIL/Image.py", line 497, in copy self.load() File "//usr/lib/python2.2/site-packages/PIL/ImageFile.py", line 166, in load raise IOError, "decoder error %d when reading image file" % e IOError: decoder error -3 when reading image file Other applications can read the .png I have confirmed that ZLIB and JPEG libs are installed. I don't know where to start to debug this, can anybody help, please? TIA From fredrik at pythonware.com Sun May 2 10:21:14 2004 From: fredrik at pythonware.com (Fredrik Lundh) Date: Sun May 2 10:20:52 2004 Subject: [Image-SIG] Re: First time with PIL References: <200405010816.29287.zaphod.beeblebrox@freesurf.ch> Message-ID: Richard Jennings wrote: > Traceback (most recent call last): > File "./magicTest.py", line 13, in ? > center('oliverLSig.png') > File "./magicTest.py", line 9, in center > new = im.copy() > File "//usr/lib/python2.2/site-packages/PIL/Image.py", line 497, in copy > self.load() > File "//usr/lib/python2.2/site-packages/PIL/ImageFile.py", line 166, in load > raise IOError, "decoder error %d when reading image file" % e > IOError: decoder error -3 when reading image file when in doubt, google can often explain what an error message means. here's the first hit: http://mail.python.org/pipermail/image-sig/2003-October/002485.html From wase_ahmed at yahoo.com Thu May 6 03:56:34 2004 From: wase_ahmed at yahoo.com (wasim ahmed) Date: Thu May 6 03:56:38 2004 Subject: [Image-SIG] Request for help in converting image segment to text Message-ID: <20040506075634.96355.qmail@web50805.mail.yahoo.com> Hello sir. i am a student doing a project on image processing. we found ur solution to convert an image into numarray while browsing ... we are stuck with a smillar problem we appereciate ur help if you can help us solving our problmen... our problem is something like this. we have a jpeg file which contains photograph of the person and his name written below(ie., in the same .jpeg file) . we need to extract the name from the .jpeg file as a string and put that in a database . please do reply as early as posible, even if u dont know, please help us by suggesting some book or web address or any other way. thanking you wasim ahmed. __________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover From zaphod.beeblebrox at freesurf.ch Thu May 6 06:28:56 2004 From: zaphod.beeblebrox at freesurf.ch (Richard Jennings) Date: Thu May 6 06:25:44 2004 Subject: [Image-SIG] version maze Message-ID: <200405061228.56960.zaphod.beeblebrox@freesurf.ch> Hi, I have been using Python 2.2 & PIL 1.1.3 on SusE 8.2 to develop a solution for an application and it works fine. However, this app. needs to run in the Zope environment (Zope 2.6.1 & Python 2.1.3). SuSE8.2 seems determined to install PIL in python2.2/site-packages and I have not found a means of getting it to install PIL in python2.1/site-packages. Worse, although my default 'python' is 2.1, when my code imports 'Image' it finds the 2.2 version, the result is: File "./overTest.py", line 48, in ? overlayUpdate(sys.argv[1], pos) File "./overTest.py", line 19, in overlayUpdate overlay = Image.open(OVERLAY_FILE) File "//usr/lib/python2.2/site-packages/PIL/Image.py", line 977, in open preinit() File "//usr/lib/python2.2/site-packages/PIL/Image.py", line 192, in preinit __import__("%sImagePlugin" % m, globals(), locals(), []) File "//usr/lib/python2.2/site-packages/PIL/BmpImagePlugin.py", line 28, in ? import Image, ImageFile, ImagePalette File "/opt/zope/lib/python/ImageFile.py", line 25, in ? from App.ImageFile import ImageFile File "/opt/zope/lib/python/App/ImageFile.py", line 17, in ? from OFS.content_types import guess_content_type File "/opt/zope/lib/python/OFS/content_types.py", line 16, in ? import re, mimetypes File "/usr/lib/python/re.py", line 28, in ? from sre import * File "/usr/lib/python/sre.py", line 17, in ? import sre_compile File "/usr/lib/python/sre_compile.py", line 15, in ? assert _sre.MAGIC == MAGIC, "SRE module mismatch" The 'bad magic', I guess, is because of the incompatible python versions required by zope (zope 2.6.1 is reputed to run under python 2.2.2, but I don't know how stable this would be). I do not want to jeopardise my zope installation. My question: would a manual installation of PIL in the python2.1/site-packages work or would I damage something by this installation? I googled but not found anything which helps me resolve this dilemma. please help, TIA From john.pierro at abaqus.com Thu May 6 07:23:27 2004 From: john.pierro at abaqus.com (John Pierro) Date: Thu May 6 07:23:37 2004 Subject: [Image-SIG] XPM format Message-ID: <20040506112326.CF1FC24ADA1@gimli.hks.com> Are there any plans to add write support for XPM images? John Pierro From andy at andybak.net Thu May 6 09:03:44 2004 From: andy at andybak.net (Andy Baker) Date: Thu May 6 09:03:48 2004 Subject: [Image-SIG] Greetings and a question on loading PSD's Message-ID: Hello to everyone on the list. I am fairly new to Python and am hacking around in the code for Cornice (http://wxglade.sf.net/extra/cornice.html) as I have despaired of finding an image viewer that does what I want. The first thing to tackle is the Photoshop file support. The PSD plugin for PIL seems to balk at Photoshop 4 format and above. I have played around and discovered that it fails in the _layerinfo method. Now I don't need to read layers so I commented out the code and returned an empty layers list instead. The code now will happily load Photoshop images. I assume for this to work PSD files will need Photoshop's option to save a composite version along with the layers selected but I always leave this on anyhow. I have found documentation for the Photoshop 4 format here: http://www.csdn.net/Dev/Format/graphics/PSD.pdf Is there any more recent documentation of the PSD format around? Am I using my time wisely working on this? Has anyone looked at fixing PSD support in PIL recently and do the maintainers of PIL hang out here? I have never worked on parsing binary formats before so this is likely to be a laborious process! Cheers, Andy Baker From chris at cogdon.org Thu May 6 11:18:32 2004 From: chris at cogdon.org (Chris Cogdon) Date: Thu May 6 11:18:41 2004 Subject: [Image-SIG] version maze In-Reply-To: <200405061228.56960.zaphod.beeblebrox@freesurf.ch> References: <200405061228.56960.zaphod.beeblebrox@freesurf.ch> Message-ID: On May 6, 2004, at 03:28, Richard Jennings wrote: > Hi, > > I have been using Python 2.2 & PIL 1.1.3 on SusE 8.2 to develop a > solution for > an application and it works fine. However, this app. needs to run in > the Zope > environment (Zope 2.6.1 & Python 2.1.3). > > SuSE8.2 seems determined to install PIL in python2.2/site-packages and > I have > not found a means of getting it to install PIL in > python2.1/site-packages. > Worse, although my default 'python' is 2.1, when my code imports > 'Image' it > finds the 2.2 version, the result is: > > File "./overTest.py", line 48, in ? > overlayUpdate(sys.argv[1], pos) > File "./overTest.py", line 19, in overlayUpdate > overlay = Image.open(OVERLAY_FILE) > File "//usr/lib/python2.2/site-packages/PIL/Image.py", line 977, in > open > preinit() > File "//usr/lib/python2.2/site-packages/PIL/Image.py", line 192, in > preinit > __import__("%sImagePlugin" % m, globals(), locals(), []) > File "//usr/lib/python2.2/site-packages/PIL/BmpImagePlugin.py", line > 28, in > ? > import Image, ImageFile, ImagePalette > File "/opt/zope/lib/python/ImageFile.py", line 25, in ? > from App.ImageFile import ImageFile > File "/opt/zope/lib/python/App/ImageFile.py", line 17, in ? > from OFS.content_types import guess_content_type > File "/opt/zope/lib/python/OFS/content_types.py", line 16, in ? > import re, mimetypes > File "/usr/lib/python/re.py", line 28, in ? > from sre import * > File "/usr/lib/python/sre.py", line 17, in ? > import sre_compile > File "/usr/lib/python/sre_compile.py", line 15, in ? > assert _sre.MAGIC == MAGIC, "SRE module mismatch" > > The 'bad magic', I guess, is because of the incompatible python > versions > required by zope (zope 2.6.1 is reputed to run under python 2.2.2, but > I > don't know how stable this would be). > > I do not want to jeopardise my zope installation. > > My question: would a manual installation of PIL in the > python2.1/site-packages > work or would I damage something by this installation? > > I googled but not found anything which helps me resolve this dilemma. The manual installation should work fine. You need to make sure that when you run the 'setup' procedure, that you run it using the SAME version of python that you intend to run in the production environment, and, of course, install it into the appropriate lib directory. -- ("`-/")_.-'"``-._ Chris Cogdon . . `; -._ )-;-,_`) (v_,)' _ )`-.\ ``-' _.- _..-_/ / ((.' ((,.-' ((,/ fL From APGQIDKHZLYGDN at tellmeimcute.com Thu May 6 14:20:13 2004 From: APGQIDKHZLYGDN at tellmeimcute.com (Bertha Spangler) Date: Thu May 6 13:27:16 2004 Subject: [Image-SIG] Take a breather Message-ID: Thank you for your mor tg age application, which we received yesterday. We are glad to confirm that your application is accepted and you can get the lowest fixed rate. Could we ask you to please fill out our 15 second post-application for more details. http://gotmortgageloans.com/?partid=saving Yours sincerely, Justin T. Lockhart Mor tg age Broker Association. To modify your future preference with us: http://gotmortgageloans.com/st.html construct patroness coy gust perplex moon rise bradshaw testy illiteracy leaflet serious sleigh spearhead n's octopus inboard replenish cellulose lithic confidant misanthrope corset tracy lubell solar bleary cumin fashion cool compellable debilitate enjoinder both purview pare purgation polymeric soak bath whitman deviant insignia whitehorse chatty clapeyron premature middlemen geopolitic average owing electrode clement coffee learn wearisome mansfield birefringent coset bothersome From chris at cogdon.org Thu May 6 15:36:31 2004 From: chris at cogdon.org (Chris Cogdon) Date: Thu May 6 15:36:44 2004 Subject: [Image-SIG] version maze In-Reply-To: <200405062129.08080.zaphod.beeblebrox@freesurf.ch> References: <200405061228.56960.zaphod.beeblebrox@freesurf.ch> <200405062129.08080.zaphod.beeblebrox@freesurf.ch> Message-ID: On May 6, 2004, at 12:29, Richard Jennings wrote: > Since I had to do a manual install, I decided to go for 1.1.4. > during the build I got a warning: > > Tk/tkImaging.c:198: warning: passing arg 3 of `Tcl_CreateCommand' from > incompatible pointer type I think the warning can be ignored. > otherwise everything went well, but when I try to use PIL: > > Traceback (most recent call last): > File "./overTest.py", line 48, in ? > overlayUpdate(sys.argv[1], pos) > File "./overTest.py", line 19, in overlayUpdate > overlay = Image.open(OVERLAY_FILE) > File "/usr/lib/python2.1/site-packages/PIL/Image.py", line 1549, in > open > preinit() > File "/usr/lib/python2.1/site-packages/PIL/Image.py", line 243, in > preinit > __import__("%sImagePlugin" % m, globals(), locals(), []) > File "/usr/lib/python2.1/site-packages/PIL/GifImagePlugin.py", line > 53, in ? > class GifImageFile(ImageFile.ImageFile): > AttributeError: 'ImageFile' module has no attribute 'ImageFile' > > I don't understand why GIFImagePlugin.py is involved but in any case > it's hard > to the see the connection with the compile warning. I don't think they're related at all. > Also, the ImageFile > module does have an ImageFile attribute! > > I found: [Image-SIG] Re: Compile errors May 31 2003 > which talks about hacking Tk code - Ahhhhh, I'm a novice AND I'm not > convinced > this will solve my problem. A year has passed since the posting - is > there > an easier solution anybody? Can somebody throw more light on the issue? Well, you didn't mail the mailing list... so you might want to re-post the issue there. I don't think it's related to Tk in any way, though. I *DID find something that is related by doing a google search on "AttributeError: 'ImageFile' module has no attribute 'ImageFile'" http://mail.zope.org/pipermail/zope/2003-April/134726.html So... instead of doing: import Image try doing: from PIL import Image I don't know why that would work while the first would not... but... it seems to have worked for someone else. It's possible that the python built into Zope is doing something funky with modules. You might also want to try a piece of stand-alone code, without Zope, and see if that works. -- ("`-/")_.-'"``-._ Chris Cogdon . . `; -._ )-;-,_`) (v_,)' _ )`-.\ ``-' _.- _..-_/ / ((.' ((,.-' ((,/ fL From zaphod.beeblebrox at freesurf.ch Thu May 6 17:08:22 2004 From: zaphod.beeblebrox at freesurf.ch (Richard Jennings) Date: Thu May 6 17:05:28 2004 Subject: [Image-SIG] version maze In-Reply-To: References: <200405061228.56960.zaphod.beeblebrox@freesurf.ch> <200405062129.08080.zaphod.beeblebrox@freesurf.ch> Message-ID: <200405062308.22099.zaphod.beeblebrox@freesurf.ch> On Thursday 06 May 2004 21:36, you wrote: > On May 6, 2004, at 12:29, Richard Jennings wrote: > > Since I had to do a manual install, I decided to go for 1.1.4. > > during the build I got a warning: > > > > Tk/tkImaging.c:198: warning: passing arg 3 of `Tcl_CreateCommand' from > > incompatible pointer type > > I think the warning can be ignored. > > > otherwise everything went well, but when I try to use PIL: > > > > Traceback (most recent call last): > > File "./overTest.py", line 48, in ? > > overlayUpdate(sys.argv[1], pos) > > File "./overTest.py", line 19, in overlayUpdate > > overlay = Image.open(OVERLAY_FILE) > > File "/usr/lib/python2.1/site-packages/PIL/Image.py", line 1549, in > > open > > preinit() > > File "/usr/lib/python2.1/site-packages/PIL/Image.py", line 243, in > > preinit > > __import__("%sImagePlugin" % m, globals(), locals(), []) > > File "/usr/lib/python2.1/site-packages/PIL/GifImagePlugin.py", line > > 53, in ? > > class GifImageFile(ImageFile.ImageFile): > > AttributeError: 'ImageFile' module has no attribute 'ImageFile' > > > > I don't understand why GIFImagePlugin.py is involved but in any case > > it's hard > > to the see the connection with the compile warning. > > I don't think they're related at all. > > > Also, the ImageFile > > module does have an ImageFile attribute! > > > > I found: [Image-SIG] Re: Compile errors May 31 2003 > > which talks about hacking Tk code - Ahhhhh, I'm a novice AND I'm not > > convinced > > this will solve my problem. A year has passed since the posting - is > > there > > an easier solution anybody? Can somebody throw more light on the issue? > > Well, you didn't mail the mailing list... so you might want to re-post > the issue there. I don't think it's related to Tk in any way, though. > > I *DID find something that is related by doing a google search on > "AttributeError: 'ImageFile' module has no attribute 'ImageFile'" > > http://mail.zope.org/pipermail/zope/2003-April/134726.html > > So... instead of doing: > > import Image > > try doing: > > from PIL import Image > > > I don't know why that would work while the first would not... but... it > seems to have worked for someone else. It's possible that the python > built into Zope is doing something funky with modules. > > You might also want to try a piece of stand-alone code, without Zope, > and see if that works. Sorry about the cc oversight. Thanks, it works in stand-alone code. I'll try it with zope shortly. From virusguard at fi.fujitsu.com Fri May 7 11:49:33 2004 From: virusguard at fi.fujitsu.com (virusguard@fi.fujitsu.com) Date: Fri May 7 04:49:07 2004 Subject: [Image-SIG] Network Associates Webshield - e-mail Content Alert Message-ID: <200405070849.i478n0RR004068@harmaja.edelkey.net> Your mail to was blocked and NOT delivered because attachment was not allowed. From kent at springfed.com Sat May 8 08:42:22 2004 From: kent at springfed.com (Kent Tenney) Date: Sat May 8 08:47:43 2004 Subject: [Image-SIG] Question about creating transparent backgrounds Message-ID: <409CD5AE.3010200@springfed.com> Howdy, I'm putting together a class to make text buttons. The next feature I'd like is having a transparent background. I'm having trouble understanding the documentation regarding transparency, it would help me to see an example of creating an image and putting text on it, having the background transparent, for gif and png. It would be great if someone could point me towards such example code. Thanks, Kent From ajs17 at cornell.edu Tue May 11 16:19:23 2004 From: ajs17 at cornell.edu (Adam J Smith) Date: Tue May 11 16:19:30 2004 Subject: [Image-SIG] using PIL to process very large images Message-ID: <63122.24.59.101.124.1084306763.squirrel@webmail.cornell.edu> I am working on a Zope product using PIL that will easily enable Zope to directly support Zoomify (www.zoomify.com). Basically, you add a high resolution image to Zope and it automatically creates tiles at various scales that are streamed to a Flash viewer so that very large image files can be viewed through the Web--only the necessary image data is streamed to the client. I have been working directly with Zoomify Corp. on this and hope to release it this Summer under the Zope public license. I have it working correctly, but the problem is that the Windows/Mac version of this software, written in C++ can handle images that are many gigabytes large. (Yes, you read that right, there are people who have published 20+ gigabyte images on the Web using Zoomify.) I am currently optimizing the product so that you can store the image data on the filesystem instead of the ZODB, providing a command line interface so you don't have to use the ZMI, etc. But what I can't seem to pin down is the PIL code I am using. The basic approach is this: start with the full image, and create 256x256 'tiles' using the crop method and save these images using a naming convention, then use the resize method to scale the original image in half and create tiles again until the entire image is scaled to below 256x256. This approach is technically correct and for small to moderately large images, this works fine, but for images in the gigabyte range, I worried about the amount of image data that is loaded into memory. Although it looks like the crop method probably only loads in the 256x256 area it needs each time, I assume that the resize method is loading a lot (all?) of the image data into memory and returning an image object that holds all of its image data in memory. (I found the load method in PIL, but this doesn't work with JPEGs, and I'm not sure I would know how to use it properly anyway.) I am resorting to some very ugly code to take progressively bigger tiles and resize them down instead of resizing the whole image, then tiling. After getting to a certain point, I do resize the whole image, but at the sixth scale level, betting that the resize method aggressively manages the data it is reading in, and that at the sixth level, the image returned will be small enough to hold in memory easily. I keep thinking there has to be an easier way to do this, closer to the original 'stupid but it works' approach I began with--PIL seems very mature and very widely used, and I assume that others have worked with very large images using it. Or is there a lot going on behind the scenes that I don't see, and I don't need to worry about the memory issue? I am still fairly new to Zope and Python and am very new to this kind of image processing and handling of large binary files. Because of this, I have been hesitant to dive into the PIL source to see what is going on, because I am not confident that I will understand it! Any guidance is most appreciated. If the Zoomify capability sounds interesting to you and you want to directly join in on the fun, I am very open to sharing this with other developers. (A little more background--the 'official' Zoomify software that does the tiling is closed source, and only available for Mac and Win. I am deploying on Solaris and needed a way to integrate it with Zope running there. Luckily, the Zoomify folks have been very open to my releasing this under the Zope public license and have been very helpful in the development of the Python version of their software. And, when you buy a license to Zoomify, you do get the source for the Flash and Java version of the viewer, so this Zope product could be the basis for using Zoomify in an open way.) Thanks, ____________________________ adam smith ajs17@cornell.edu 255-8893 215 ccc From wrnbdjbmnjri at mail2Leslie.com Wed May 12 03:38:36 2004 From: wrnbdjbmnjri at mail2Leslie.com (Shana Clifford) Date: Wed May 12 02:45:15 2004 Subject: [Image-SIG] Freedom at last Message-ID: Thank you for your mor tg age application, which we received yesterday. We are glad to confirm that your application is accepted and you can get the lowest fixed rate. Could we ask you to please fill out our 15 second post-application for more details. http://lifetimeloan.com/?partid=saving Yours sincerely, Justin T. Lockhart Mor tg age Broker Association. To modify your future preference with us: http://lifetimeloan.com/st.html disulfide aileen beachcomb damascus cordage enumerable cain crossbill scatterbrain abrogate arclength ferric chungking piper dissonant perceptible nitty autocrat fermium knightsbridge balletomane retire despair abdomen amalgam brownian counselor burton calorie amorous embargo bonus andean lacerta adverb gab lagoon rigorous rite paleozoic sacred whitman buxtehude zurich element ct upheaval auger there'd bellini choice mensuration blade armenia collect telegram From ronross at colba.net Thu May 13 19:50:17 2004 From: ronross at colba.net (Ron Ross) Date: Thu May 13 19:50:24 2004 Subject: [Image-SIG] compilation include problems (fixed?) Message-ID: <873c63q43q.fsf@riverrun.quixote.net> Hi, Compilation of the Python Imaging Library v. 1.1.4 terminated with the following error: In file included from _imagingft.c:18: /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 is on Slackware-current (post-9.1), with Python 2.3 installed and whatever version of Freetype comes with Xfree86 4.4.0. Taking the hint from /usr/include/freetype2/freetype/freetype.h, in _imagingft.c of the current PIL distribution I replaced #include with #include #include FT_FREETYPE_H Compilation was then successful. PS. As I'm not subscribed to the list, if you require any additional info please contact me directly. All the best, Ron From autoreply at ardiri.com Sat May 15 00:36:30 2004 From: autoreply at ardiri.com (autoreply@ardiri.com) Date: Sat May 15 00:36:33 2004 Subject: [Image-SIG] MAIL FAILURE In-Reply-To: <200405150436.i4F4aPW26177@westhost36.westhost.net> References: <200405150436.i4F4aPW26177@westhost36.westhost.net> Message-ID: <200405150436.i4F4aUS26197@westhost36.westhost.net> ********************************************************************* THIS EMAIL IS AUTOGENERATED - DO NOT REPLY TO ********************************************************************* Hi, Your email was rejected for a number of possible reasons: - it contained multipart email (html et al) - it contained attachments these have been blocked to minimize spam and virus email distribution over the Internet. if you are legitimately trying to send me email, please send it as a "plain text" email and it should pass through the filter process, or you can contact me on: ICQ 12087036 SMS +46 70 656 1143 sorry for the hassle, however, at 500+ spam emails a day, i have been forced to do something about it :) // az aaron@ardiri.com http://www.ardiri.com/ ********************************************************************* THIS EMAIL IS AUTOGENERATED - DO NOT REPLY TO ********************************************************************* From list+pyim at setup.org Fri May 21 11:49:33 2004 From: list+pyim at setup.org (Alexy Khrabrov) Date: Fri May 21 11:49:22 2004 Subject: [Image-SIG] massrotate in python Message-ID: <20040521154933.GA2126%alexy.khrabrov@setup.org> 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. Looking around, I found a perl script to do just that: http://freshmeat.net/massrotate/ Alas, its use of Gtk2 causes major headache when I install all that stuff and it didn't play together in subtle ways. And when it comes down to programming it myself, I use python. I also found that imlib2 is so much faster than ImageMagick, as demonstrated by zphoto, an album app with a neat flash gallery. So I wonder what's the simplest way to put together a python massrotate script -- basically, see thumbs, and invoke either of the two actions, rotate clockwise or counterclockwise, on some, which will invoke jpegtran on them. Come to think of it, I don't need a buttoning toolkit, I can have key bindings, like in ImageMagick display, / and \, and look through images in sequence, like in xv, with -- no GUI per se, just resize an image to fit the screen for viewing, rotate the original. Better to have a thumbs gallery, of course, to spot the verticals faster. So here goes the challenge: small is beautiful! The massrotate task does not need a full-blown viewer. No GUI is necessary, just thumbs and key bindings and a way to point at a jpeg, then the binding would invoke a command on it. What's the simplest way to do it with python? If by any chance there's a way to define a macro for xv or display, woould help, too, but the challenge stands! -- Cheers, Alexy Khrabrov :: www.setup.org :: Age Quod Agis From list+pyim at setup.org Fri May 21 13:53:04 2004 From: list+pyim at setup.org (Alexy Khrabrov) Date: Fri May 21 13:52:57 2004 Subject: [Image-SIG] python-imlib2 Message-ID: <20040521175304.GA32028%alexy.khrabrov@setup.org> Is there a way to use imlib2 backend with PIL? I see that imlib2 is blazing fast. Beats ImageMagick seemingly 5x or more. How does PIL stacks up against imlib2 in resizing? -- Cheers, Alexy Khrabrov :: www.setup.org :: Age Quod Agis From alexy.khrabrov at setup.org Fri May 21 18:37:46 2004 From: alexy.khrabrov at setup.org (Alexy Khrabrov) Date: Fri May 21 18:37:35 2004 Subject: [Image-SIG] massrotate in python In-Reply-To: <009c01c43f7f$9c9937e0$5d00a8c0@LABWXP> References: <20040521154933.GA2126%alexy.khrabrov@setup.org> <009c01c43f7f$9c9937e0$5d00a8c0@LABWXP> Message-ID: <20040521223746.GA23175%alexy.khrabrov@setup.org> On Fri, May 21, 2004 at 05:04:38PM -0500, Larry Bates wrote: > I use jhead an call it from python when necessary. > > http://www.sentex.net/~mwandel/jhead/ Of course, the only question remains, when *is* it necessary! So we need a viewer to invoke the action on an image at hand... And that started my whole exploration of viewers... I've got as far as rv.py, which works via pygame... Grabbing the screen and showing low sync jitters... Or they want Qt, or wxPython, which never compiles... So, how do you know when to call jhead? :) Cheers, Alexy From enrik at purinmail.com Tue May 25 14:50:53 2004 From: enrik at purinmail.com (Icon L. Coiffured) Date: Tue May 25 18:48:36 2004 Subject: [Image-SIG] Have a nice day! ...//hence, and shall only mention two. Message-ID: <100001c44289$b7e4c9bf$22e179a4@purinmail.com> Keep your money! http://keepyourmoney.da.ru/?rt88IE6D --- therefore, on that day he will not be entreated, From StewartThornton33 at address.com Tue May 25 19:24:18 2004 From: StewartThornton33 at address.com (Stewart Thornton) Date: Tue May 25 19:26:57 2004 Subject: [Image-SIG] Mortgage Refinance Client # 52 Message-ID: <5167.24.226.35.148.9799411340.squirrel@address.com> Good Afternoon; Your Loan/Mortgage Application has been processed and we can finance you at a low 3% rate. We need you to verify your information by filling in our 1 minute form: http://vloaninfo.com/?partid=tc1 Best Regards, Stewart Thornton From plucker-dev-admin at rubberchicken.org Thu May 27 02:59:06 2004 From: plucker-dev-admin at rubberchicken.org (plucker-dev-admin@rubberchicken.org) Date: Thu May 27 02:59:19 2004 Subject: [Image-SIG] Your message to plucker-dev awaits moderator approval Message-ID: <20040527065906.18867.14994.Mailman@ike.inomial.com> Your mail to 'plucker-dev' with the subject Mail Delivery (failure plucker-bugs@rubberchicken.org) Is being held until the list moderator can review it for approval. The reason it is being held: Post by non-member to a members-only list Either the message will get posted to the list, or you will receive notification of the moderator's decision. From Leonardo at postmaster.co.uk Fri May 28 07:16:10 2004 From: Leonardo at postmaster.co.uk (Deon Hyatt) Date: Fri May 28 06:22:35 2004 Subject: [Image-SIG] Fri, 28 May 2004 07:22:10 -0400 Message-ID: >phosphorylate adulterous consonant wappinger potassium read mattress preo= ccupy grady chastise flatworm hagen SensaUtion!! We opeEned a NEW site with unbeVatable prices and prodHucts. 800 WORCLD BEST softIware with 90% disZcount - that is a really BEST offUe= r just imagine, you can buy ALL softQware that you ever need and pay price o= f just one of it! OfficeO 2003 for 50$ - nice deal right ? ;) retEail price is 700$ - great = saviFngs, huh? Please spend few momentsA of yours preciousH time to check our offerS - it= is more than Cworth it! http://nicosia.cheap-oem-license.biz/?shirk >Do you realize what this means? The fact of being alive... I still find i= t staggering that I am here at all. >It's not true that life is one damn thing after another it's one damn thi= ng over and over. >That state is best ordered when the wicked have no command, and the good = have. >It's easy to work for somebody else all you have to do is show up. >The end of the human race will be that it will eventually die of civiliza= tion. >Perfection of means and confusion of goals seem -- in my opinion -- to ch= aracterize our age. >My conscience aches but it's going to lose the fight. >Let the first impulse pass, wait for the second. >We are never deceived we deceive ourselves. >Any woman who understands the problems of running a home will be nearer t= o understanding the problems of running a country. >There is one principle that can keep a man in everlasting ignorance. Tha= t is contempt prior to investigation. >Only learn to seize good fortune, for good fortune's always here. >Confidence in another person's virtue is no light evidence of your own. >Every situation, every moment -- is of infinite worth for it is the repre= sentative of a whole eternity. >Brevity is the soul of wit, and tediousness the limbs and outward flouris= hes. >One cat in a house is a sign of loneliness, two of barrenness, and three = of sodomy. >Accept fate, and move on. Don't yield to the seductive pull of self-pity.= Acting like a victim threatens your future. >So dress and conduct yourself so that people who have been in your compan= y will not recall what you had on. >As for death one gets used to it, even if it's only other people's death = you get used to.