Best way to scale images from Zope besides PIL?
I'm building a web application that needs to create uniformly sized thumbnails of uploaded pictures, and I have been trying now for a very long time to get PIL working on my system without success with no luck whatsoever. Is there a better (or should I say working) method of having this image manipulation functionality in Zope? Unless you are willing to spell it out *explicitly* *please* don't give me more advice on how to get PIL working, I give up. I've tried at least ten different helpful suggestions (and tried reinstalling it from scratch three times)..none of them have worked.. I'm currently using the 2.24 binary release of Zope running on Debian Linux (potato) Basically what I need to do is script an external application to resize images using Zope as a control mechanism. The images don't have to reside within Zope (in fact, it is better if they don't..) Thanks.. -Chris
Hi, On Tue, 12 Jun 2001, Chris Beaumont wrote:
I'm building a web application that needs to create uniformly sized thumbnails of uploaded pictures, and I have been trying now for a very long time to get PIL working on my system without success with no luck whatsoever.
Is there a better (or should I say working) method of having this image manipulation functionality in Zope?
Unless you are willing to spell it out *explicitly* *please* don't give me more advice on how to get PIL working, I give up. I've tried at least ten different helpful suggestions (and tried reinstalling it from scratch three times)..none of them have worked.. I'm currently using the 2.24 binary release of Zope running on Debian Linux (potato)
I'm sorry, but if you don't give us enough details about the problem you encounter, then how can we help you ? I've got some code which takes images from the ZODB using PIL and puts them in a PDF document using ReportLab modifying their size (in RL, not PIL, but this shouldn't be difficult). If this can help then I can send it to you. Otherwise I suggest you try to report the exact error message(s) you've got or the exact problem(s) you encounter, in order for us to be able to help. bye, Jerome Alet
Unless you are willing to spell it out *explicitly* *please* don't give me more advice on how to get PIL working, I give up. I've tried at least ten different helpful suggestions (and tried reinstalling it from scratch three times)..none of them have worked.. I'm currently using the 2.24 binary release of Zope running on Debian Linux (potato)
Believe me, you WOULD get PIL working if you tried hard enough; after all you are not running a standard Linux distro, which should come with all the needed modules either as part of the distro or as packages ... Joachim
I was having PIL problems, but I have ImageMagick and Perl working. So Im currently writing a nice Zope product in pyperl that calls Perl to manipulate images. Setting that up isnt easier, but I was able to get it up and running at least :) -- Andy McKay
On Tue, Jun 12, 2001 at 06:55:28AM -0700, Chris Beaumont wrote:
Unless you are willing to spell it out *explicitly* *please* don't give me more advice on how to get PIL working, I give up. I've tried at least ten different helpful suggestions (and tried reinstalling it from scratch three times)..none of them have worked.. I'm currently using the 2.24 binary release of Zope running on Debian Linux (potato)
I'm using 2.3.2 (rebuilt from sid sources) on potato, and at least I've managed to get both PIL and the Photo product (0-4-3, http://www.zope.org/Members/Drew/Photo) working this afternoon. No trouble at all, and I've not yet installed Drew's PhotoAlbum .zexp Relevant products: zope 2.3.2-2 (http://www.cae.tntech.edu/~mwr/zope_2.3.2-2_i386.deb), task-python-web 1.2 (meta-package for installing Zope, python-imaging aka PIL, etc.) Evidence: http://www.cae.tntech.edu/help/unix/screen/test_photo?display=xlarge http://www.cae.tntech.edu/help/unix/screen/test_photo?display=thumbnail So that's not explicit instructions, but it can be done. Email me off-list if you can't reproduce it. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
Thanks Mike, I will. I will have to wait a few weeks, though, because it sounds to me as if what i need to do is rebuild Zope from source and right now its crush time and I just don't have the time to do it..we close in around two weeks for a week and I might get enough of a breather to tackle it. So, basically, it seems to me, everybody who builds Zope from source gets it (PIL) working, everybody who doesn't, perhaps doesn't. That would explain a lot.. Chris
On Tue, Jun 12, 2001 at 06:55:28AM -0700, Chris Beaumont wrote:
Unless you are willing to spell it out *explicitly* *please* don't give me more advice on how to get PIL working, I give up. I've tried at least ten different helpful suggestions (and tried reinstalling it from scratch three times)..none of them have worked.. I'm currently using the 2.24 binary release of Zope running on Debian Linux (potato)
I'm using 2.3.2 (rebuilt from sid sources) on potato, and at least I've managed to get both PIL and the Photo product (0-4-3, http://www.zope.org/Members/Drew/Photo) working this afternoon. No trouble at all, and I've not yet installed Drew's PhotoAlbum .zexp
Relevant products: zope 2.3.2-2 (http://www.cae.tntech.edu/~mwr/zope_2.3.2-2_i386.deb), task-python-web 1.2 (meta-package for installing Zope, python-imaging aka PIL, etc.)
Evidence:
http://www.cae.tntech.edu/help/unix/screen/test_photo?display=xlarge http://www.cae.tntech.edu/help/unix/screen/test_photo?display=thumbnail
So that's not explicit instructions, but it can be done. Email me off-list if you can't reproduce it.
-- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
Just wanted to add that I had PIL, Photo, ZPhoto, and ZPhotoAlbum working on my Debian system at home. I just used the deb binary packages that are part of potato, although I upgraded to the latest Zope version on unstable later. I wish I could tell you how to fix your problem, but PIL was already part of a Python package installed on my machine before I had Zope working. Eric Balasbas Senior Developer eric@virtosi.com http://www.virtosi.com/ Virtosi Ltd. Design -- Branding -- Zope On Wed, 13 Jun 2001, Chris Beaumont wrote:
Thanks Mike, I will. I will have to wait a few weeks, though, because it sounds to me as if what i need to do is rebuild Zope from source and right now its crush time and I just don't have the time to do it..we close in around two weeks for a week and I might get enough of a breather to tackle it.
So, basically, it seems to me, everybody who builds Zope from source gets it (PIL) working, everybody who doesn't, perhaps doesn't.
That would explain a lot..
Chris
On Tue, Jun 12, 2001 at 06:55:28AM -0700, Chris Beaumont wrote:
Unless you are willing to spell it out *explicitly* *please* don't give me more advice on how to get PIL working, I give up. I've tried at least ten different helpful suggestions (and tried reinstalling it from scratch three times)..none of them have worked.. I'm currently using the 2.24 binary release of Zope running on Debian Linux (potato)
I'm using 2.3.2 (rebuilt from sid sources) on potato, and at least I've managed to get both PIL and the Photo product (0-4-3, http://www.zope.org/Members/Drew/Photo) working this afternoon. No trouble at all, and I've not yet installed Drew's PhotoAlbum .zexp
Relevant products: zope 2.3.2-2 (http://www.cae.tntech.edu/~mwr/zope_2.3.2-2_i386.deb), task-python-web 1.2 (meta-package for installing Zope, python-imaging aka PIL, etc.)
Evidence:
http://www.cae.tntech.edu/help/unix/screen/test_photo?display=xlarge http://www.cae.tntech.edu/help/unix/screen/test_photo?display=thumbnail
So that's not explicit instructions, but it can be done. Email me off-list if you can't reproduce it.
-- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
_______________________________________________ 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 )
Guten Morgen. * Chris Beaumont <cbeaumon@msri.org> [2001-06-13 22:25]:
So, basically, it seems to me, everybody who builds Zope from source gets it (PIL) working, everybody who doesn't, perhaps doesn't.
You only need three simple steps to build from source. Step 1. To build from source, you simply add this line to your /etc/apt/sources.list: deb-src http://http.us.debian.org/debian unstable main contrib non-free Step 2. Then you can get and build the package from sid (aka unstable) with a single step: apt-get --build source zope Step 3. There is no step 3 :-) The best solution is, by the way, to upgrade your Debian distribution to woody (aka testing). Woody is ready for real work, contains recent versions of all the interesting software (like the Zope database adapters for PostgreSQL) and is very easy to install. Cheers, Nils PS: You need the dpkg-dev package for the --build option.
participants (7)
-
Andy McKay -
Chris Beaumont -
Eric Balasbas -
Jerome Alet -
Joachim Werner -
Mike Renfro -
Nils Kassube