Re: [Image-SIG] Correctly determine image size of a Photoshop EPS

2005-09-20 Thread Stefano Masini
On 9/20/05, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > PIL is supposed to support ImageData tags, and it should pick the size from > the ImageData header over the bounding box, but I suppose it's not robust > enough to handle your file. Thanks for the hint, Fredrik. Indeed I went and looked at the

Re: [Image-SIG] Correctly determine image size of a Photoshop EPS

2005-09-19 Thread Stefano Masini
On 9/19/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > EPS files don't have specific pixel dimensions - they're essentially a > vector format. You may happen to have raster data embedded in it, but > that's besides the point. I know, but correctly determining the pixel size of the embedded ra

[Image-SIG] Correctly determine image size of a Photoshop EPS

2005-09-19 Thread Stefano Masini
Hello, I got hold of some EPS files evidently made with Photoshop. It seems I can't convert them to jpeg while retaining the correct size. The problem is that I need to know the original size because I have to make decisions depending on that. I've got one that when opened in Photoshop is 1315x89

Re: [Image-SIG] Auto level with PIL?

2005-09-07 Thread Stefano Masini
On 9/8/05, Joao S. O. Bueno Calligaris <[EMAIL PROTECTED]> wrote: > The cenonicakl reference is still the aparently out of date page at: > > www.jamesh.id.au/software/pygimp/ This looks like a way to write python scripts that run _within_ Gimp. In fact, the documentation says the system also take

Re: [Image-SIG] Auto level with PIL?

2005-09-07 Thread Stefano Masini
In this code all_same defaults to 0. The author says: "I find the BEST way to color/density correct an image is to first set the black/white point for each of the channels individually, so that you use the entire available dynamic range." While this is true, I must point out that you risk skewing t

Re: [Image-SIG] Auto level with PIL?

2005-09-07 Thread Stefano Masini
Autolevel basically works by analyzing the histogram of the image. The histogram of an 8-bit image is basically a set of 256 counters (32767 if working in 16-bit mode) for each channel. Each one counts how many bits are the in the image for the specified intensity value. A pixel with color (100, 20

Re: [Image-SIG] Read EPS (bitmap and vector), TIFF and PSD on windows

2005-09-01 Thread Stefano Masini
On 9/1/05, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > I'm not sure I see the connection -- the EPS plugin simply looks for > EPS headers, and if found, tells ghostscript to render it to a suitable Here's what I got: File "/usr/lib/python2.4/site-packages/PIL/EpsImagePlugin.py", line 75, in Ghosts

Re: [Image-SIG] Read EPS (bitmap and vector), TIFF and PSD on windows

2005-09-01 Thread Stefano Masini
On 9/1/05, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > have you tried installing PIL and doing > > import Image > Image.open('foo.eps').save('preview.jpeg') yeehh... I've tried it... spent some time on it today, but not successfully... :( Of course, I probably stressed the poor ghostscript right

Re: [Image-SIG] Read EPS (bitmap and vector), TIFF and PSD on windows

2005-09-01 Thread Stefano Masini
On 9/1/05, Markus Meyer <[EMAIL PROTECTED]> wrote: > at least for vector EPS, you definitely need a RIP (raster image > processor). Of course, Photoshop has kind of a RIP built-in, so it can yep. > Most of these programs should be able to create JPG previews. Commercial > RIPs normally work using

Re: [Image-SIG] Read EPS (bitmap and vector), TIFF and PSD on windows

2005-09-01 Thread Stefano Masini
On 9/1/05, Matthew Nuzum <[EMAIL PROTECTED]> wrote: > I haven't found a solution that can read PSD files that correctly > handles the layer effects created in 5.5 and newer versions of PSD > files. Yeah... I can see that. Adobe keeps adding stuff to its products, no wonder people can't keep up wit

[Image-SIG] Read EPS (bitmap and vector), TIFF and PSD on windows

2005-09-01 Thread Stefano Masini
Hi, I've been digging around a bit and found a little too many different libraries for dealing with image formats, so I'm a little confused... here's my problem: I need to read JPG (easy), TIFF (easy), EPS (both bitmap and vector) and PSD (photoshop) files, and create small jpeg previews. This sh