Re: [Image-SIG] Some issue with easy_install and PIL/Imaging

2009-09-28 Thread Klein Stéphane
Fredrik Lundh a écrit : On Fri, Sep 11, 2009 at 3:49 PM, Chris Withers wrote: Klein Stéphane wrote: Resume : 1. first question : why PIL package in "pypi" don't work ? Because Fred Lundh have his package distributions unfortunate names that setuptools doesn't like... It used to support this

Re: [Image-SIG] Problem when resizing large JPEG to thumbnail

2009-09-28 Thread Fredrik Lundh
On Mon, Sep 28, 2009 at 5:11 PM, Etienne Desautels wrote: > Do you know when you will release the final version ? It looks like your not > really far from releasing. The release should have been cut ages ago, but last-second bug reports pushed it into my vacation. And when you don't make a prop

Re: [Image-SIG] Problem when resizing large JPEG to thumbnail

2009-09-28 Thread Etienne Desautels
Sorry for posting in to parts. On 09-09-28, at 07:22, Fredrik Lundh wrote: On Tue, Sep 1, 2009 at 4:44 AM, Etienne Desautels wrote: 3. Converting from TIFF CMYK to RGB shift the colors dramatically. This is a bug in 1.1.6 and earlier (well, strictly speaking, it's a old bug in Photoshop

Re: [Image-SIG] Problem when resizing large JPEG to thumbnail

2009-09-28 Thread Fredrik Lundh
On Mon, Sep 28, 2009 at 5:01 PM, Etienne Desautels wrote: >>> 3. Converting from TIFF CMYK to RGB shift the colors dramatically. >> >> This is a bug in 1.1.6 and earlier (well, strictly speaking, it's a >> old bug in Photoshop, but I guess we're not really in a position to >> make them change the

Re: [Image-SIG] Problem when resizing large JPEG to thumbnail

2009-09-28 Thread Etienne Desautels
On 09-09-28, at 07:22, Fredrik Lundh wrote: On Tue, Sep 1, 2009 at 4:44 AM, Etienne Desautels wrote: So after experimenting, I see 3 problems: 1. Resize with ANTIALIAS from a large JPEG to a small thumbnail give poor image quality. This should work fine in 1.1.6; no time to look at yo

Re: [Image-SIG] Windows CRT issues with Python 2.6

2009-09-28 Thread Fredrik Lundh
Ah, sneaky. I'm pretty sure the current binary distribution was built when 2.6 was new, and I didn't really expect them to tweak build-related issues in an incremental release :) I'll push out a new build asap; will ping the list when it's available. Thanks! On Mon, Sep 28, 2009 at 3:46 PM, K

Re: [Image-SIG] Some issue with easy_install and PIL/Imaging

2009-09-28 Thread Fredrik Lundh
On Fri, Sep 11, 2009 at 3:49 PM, Chris Withers wrote: > Klein Stéphane wrote: >> >> Resume : >> 1. first question : why PIL package in "pypi" don't work ? > > Because Fred Lundh have his package distributions unfortunate names that > setuptools doesn't like... It used to support this, but no long

Re: [Image-SIG] Windows CRT issues with Python 2.6

2009-09-28 Thread Koen van de Sande
The fix was applied to the main Python distribution (2.6.2 has it for sure, 2.6.0/2.6.1 does not). Any extension built with 2.6.2 or higher should be fine, as it will not get an embedded manifest. So just rebuild with Python Windows version 2.6.2. I see in the PIL source tree that it uses a setu

Re: [Image-SIG] imaging c module is not installed

2009-09-28 Thread Andreas Briese
Fredrik Lundh writes: >Did you solve this? The problem can be that the resulting module is >squirreled away somewhere where the test cannot find it. What happens >if you just fire up a Python interpreter and type: > >import _imaging >_imaging.__file__ > >If the former gives an ImportErro

Re: [Image-SIG] python install problem 1 test failed selftest.testimage

2009-09-28 Thread Fredrik Lundh
It tries to tell you that PIL's _imaging.so module was built without JPEG support, which means that the setup.py script couldn't find or set up the libjpeg library. If setup claims that it did find libjpeg, make sure you don't have multiple _imaging.so modules around (the selftest in 1.1.6 can som

Re: [Image-SIG] can't open an image in ASP application

2009-09-28 Thread Fredrik Lundh
Might be that Python's picking up some other module named "Image". Make sure that Image.__file__ (the location of the source for the image) is what you expect it to be in your different environments. On Wed, Aug 12, 2009 at 2:13 AM, Herb Verbesey wrote: > The following codes works fine when run

Re: [Image-SIG] Windows CRT issues with Python 2.6

2009-09-28 Thread Fredrik Lundh
Make sense, but I'm not sure I can figure out what they actually ended up doing about it from that thread. Anyone who can summarize and/or provide a patch? On Thu, Sep 10, 2009 at 8:00 PM, Farshid Lashkari wrote: > Hello, > I've encountered an issue with distributing a Python 2.6 and PIL based

Re: [Image-SIG] How to get quality of picture

2009-09-28 Thread Fredrik Lundh
The quality setting is used to create a quantization table which is then used by the compression algorithm. There's no pre-defined mapping between quality and the contents of the quantization table for JPEG (different implementations do different things), but some applications attempt to guess by

Re: [Image-SIG] How to get quality of picture

2009-09-28 Thread Elias Fotinis
From: qiaohl Is there any function in PIL to get the value of JPEG quality(1-100)? I know there are functions to set this value, But I found no function to get this value of an existing JPEG file. You can't get the quality value, because it's not stored anywhere in the file. I found a Micro

[Image-SIG] How to get quality of picture

2009-09-28 Thread qiaohl
Hi,all Is there any function in PIL to get the value of JPEG quality(1-100)? I know there are functions to set this value, But I found no function to get this value of an existing JPEG file. Thanks! 2009-09-28 qiaohl ___ Image-SIG maillist

Re: [Image-SIG] Problem when resizing large JPEG to thumbnail

2009-09-28 Thread Fredrik Lundh
On Tue, Sep 1, 2009 at 4:44 AM, Etienne Desautels wrote: > So after experimenting, I see 3 problems: > 1. Resize with ANTIALIAS from a large JPEG to a small thumbnail give poor > image quality. This should work fine in 1.1.6; no time to look at your tests right now, but I'll do that asap. > 2.