RE: [Zope] ANNOUNCE: Photo Product Update
Why not just hack it to call convert from the command line? Used to do this all the time using IM on Win32... Sean -----Original Message----- From: Ron Bickers [mailto:rbickers-dated-999950744.8cb35d@logicetc.com] Sent: Saturday, September 01, 2001 5:06 AM To: Ausum; Ron Bickers; zope@zope.org Subject: RE: [Zope] ANNOUNCE: Photo Product Update
-----Original Message----- From: Ausum [mailto:augusto@artlover.com]
Ron, I tried it using the latest Photo.py, and I've copied the error message
On the other hand, is there a specific way to setup ImageMagick at Windows?
I'm not familiar with ImageMagick on Windows, so I'm afraid I can't help much here, but it sounds like what you did is sufficient.
Error Value: unexpected keyword argument: mode
Arg. Python 1.5.2 doesn't have a mode argument, but Python 2.1 on Windows requires it.
1) Windows apparently doesn't support popen2 on Python 1.5.2, so you'll need to use Python 2.1
at the bottom of this mail. (I'm using the Python 1.5.2 default installation, not the one bundled with Zope.)
If you're using Python 1.5.2 on Windows, you won't be able to use ImageMagick as it is implemented in Photo. I might just have to consider doing this a different way because of Windows. _______________________ Ron Bickers Logic Etc, Inc. _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-----Original Message----- From: sean.upton@uniontrib.com [mailto:sean.upton@uniontrib.com]
Why not just hack it to call convert from the command line? Used to do this all the time using IM on Win32...
This is what I did (initially using popen2 to send and get the image) since there's no working Python module for IM that I'm aware of. However, Windows is a little brain dead when it comes to popen support. The current CVS creates a temp file, runs mogrify, and reads in the modified temp file. Wolfgang Strobl submitted a patch to use win32pipe and reported success. But based on my tests, the temp file method has shown to be 25% faster than using popen2. If others could report success (or failure) on Windows with the current CVS version, I'll either leave it or just consider using win32pipe and be done with it. Thanks! _______________________ Ron Bickers Logic Etc, Inc.
participants (2)
-
Ron Bickers -
sean.upton@uniontrib.com