Re: [Image-SIG] Installation program does NOT provide file pilimages.py

2009-10-21 Thread Waldemar Osuch
On Tue, Oct 20, 2009 at 5:56 PM, Randy Lent wrote:

>  I am currently taking a class in Python.  For the class, we are using
> version 2.6.  I have attempted to install the Python Imaging Library on two
> different computers using this link
>
> http://effbot.org/downloads/PIL-1.1.6.win32-py2.6.exe
>
>
>
>
>
> In both cases, the pilimages.py file is missing.
>
> From what I can tell the "pilimages.py" is not part of PIL distribution.
It is not even in the source repository.
I venture a guess that the "pilimages.py" is an extra file provided by the
instructor of your class

Waldemar
<>___
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig


Re: [Image-SIG] Python Imaging Library (PIL)

2008-08-20 Thread Waldemar Osuch
2008/8/19 Ang Ah Giat, Linda <[EMAIL PROTECTED]>:
> Hi,
>
> I try to install plone into my zope, it complaint that "PortalTransforms
> Problem importing module image_to_png : No module named PIL.Image". So I
> download the Python Imaging Library 1.1.6 Source Kit (all platforms) from
> http://www.pythonware.com/products/pil/
>
> I did the follow steps as in the README file
> $ gunzip Imaging-1.1.6.tar.gz
> $ tar xvf Imaging-1.1.6.tar
> $ cd Imaging-1.1.6
> $ python setup.py install
> I go a lot funny stuff on the screen and end with "error: command 'gcc'
> failed with exit status 1"
> Anywhere that I can get the Python Imaging Library for Ububtu version 7.10?

I would try this first:

sudo apt-get install python-imaging

before trying to compile my own version
___
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig


Re: [Image-SIG] help me to contribute -- writing multi-page TIFF ....

2008-04-14 Thread Waldemar Osuch
On Mon, Apr 14, 2008 at 3:40 AM, Sebastian Haase <[EMAIL PROTECTED]> wrote:
> Hi,
>  Since TIFF seems to be the most wanted format in our group (microscopy
>  images) I now want to add write support for multi-page tiff image.
>
>  I was wondering if people here could give me some hints and / or
>  references on how to go about this ?
>
>  Of course if someone knows about existing code to write multi-page
>  tiff in Python -- please speak up now ;-)  (( wxPython maybe ?))

I have used http://www.haynold.com/software_projects/2004/pytiff/ before.
The project seems to abandoned but it worked very nicely for my simple needs.

Another option worth considering is to use something like:
 http://www.libtiff.org/ in combination with subprocess module.

>
>  Since multi-page tiffs, called image-sequences in PIL, can be read by
>  PIL I thought, it should be quite informative to set
>  Image.DEBUG = 1
>  and open some simple tif sequence file.  Right ?
>
>  Is it important if the "Image File Directory" (IFD) is in front or
>  after each page !?
>  Is a multi-page tif just a sequence of "normal" (i.e. single page)
>  tiff IFD-imageData-pairs with an adjusted IFD entry for "next IFD"  !?
>
>
>  Thanks,
>  Sebastian Haase
>  ___
>  Image-SIG maillist  -  Image-SIG@python.org
>  http://mail.python.org/mailman/listinfo/image-sig
>
___
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig


Re: [Image-SIG] opendialog

2007-05-09 Thread Waldemar Osuch
On 5/8/07, SELMA GÜZEL <[EMAIL PROTECTED]> wrote:
>
> I wonder if there is any modul like delphi's opendialog in python?
>

See a useful example here:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/438123

Waldemar
___
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig


Re: [Image-SIG] seeking guidance on image conversion

2007-04-05 Thread Waldemar Osuch
> * One of the Python scripts is calling Linux tiffsplit command to
> convert multipage faxes (TIFF group 4 compressed) into collections of
> single page TIFFs.

pytiff library should be able to do it
(http://www.haynold.com/software_projects/2004/pytiff/)
I have used it on small scale for the same purpose.

>
> * The wxPython app is calling GnuWin32's tiffcp.exe to rejoin single
> page TIFFs into multipage TIFFs.

pytiff again.

> * We're calling the ImageMagick convert command to make PDFs into TIFFs.

Alternatively one could use Ghostscript for the purpose.  They provide
even a shared library that could be driven using ctypes.

> * We're calling an Open Office 1.1.5 command line tool to convert
> Word documents to PDF (which then get converted to TIFF by
> ImageMagick).

If windows machine has PDFCreator installed
(http://www.pdfforge.org/products/pdfcreator) one could use Python COM
to drive Word and print directly into PDF format.

Waldemar
___
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig


Re: [Image-SIG] Newb help... can't install the PIL extension libraries

2007-01-26 Thread Waldemar Osuch
On 1/25/07, Paul <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi,
>
>
>
> I'm very new to linux (2 days!) but have been using Python on windows for a
> few weeks now. I would like to install PIL on my linux (ubuntu) machine but
> am having all sorts of trouble following the readme, I get a ton of errors
> when trying to run the build.py. Mostly cannot find directory errors, but
> there are others thrown in for good measure.

Use prepackaged version of PIL if you can.
apt-get is your friend
Or for command line challenged, Synaptic.

The general instruction on installing:
https://help.ubuntu.com/6.10/ubuntu/desktopguide/C/add-applications.html

Waldemar
___
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig


Re: [Image-SIG] help(aggdraw.Draw instance) -> crash on Windows?

2006-02-12 Thread Waldemar Osuch
> I've released a new source kit which fixes this issue and a couple of
> other alpha bugs.  ZIP and TAR archives are available here:
>
> http://effbot.org/downloads/#aggdraw
>
> 

Oh boy, that was quick
___
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig


[Image-SIG] help(aggdraw.Draw instance) -> crash on Windows?

2006-02-11 Thread Waldemar Osuch
I have observed following on Windows XP:

Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from PIL import Image
>>> Image.VERSION
'1.1.5'
>>> import aggdraw
>>> aggdraw.__version__
'1.2a2'
>>> image = Image.new('RGB', (600, 430), 'white')
>>> draw = aggdraw.Draw(image)
>>> help(draw)
-->PYTHON CRASH<--

Can anyone else confirm it?
My machine started to act funny recently so maybe it is time to rebuild it.

Waldemar
___
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig