Re: [Image-SIG] Determine byte offset of JPEG SOI marker

2009-02-01 Thread Ned Batchelder
ge-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig -- Ned Batchelder, http://nedbatchelder.com ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig

Re: [Image-SIG] going between numpy array and PIL.Image not behaving as expected

2008-11-21 Thread Ned Batchelder
\__trials__\numpy-PIL.py", line 30, in ''' % (extrema, image.getextrema()) AssertionError: numpy image extrema (minimum,maximum): (0, 11) PIL image extrema (minimum,maximum): (0, 2) I would appreciate pointers on what I'm doing incorrectly. Thanks, -- jv

Re: [Image-SIG] going between numpy array and PIL.Image not behaving as expected

2008-11-21 Thread Ned Batchelder
__ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig -- Ned Batchelder, http://nedbatchelder.com ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig

[Image-SIG] ImageDraw leaks unless deleted?

2008-11-03 Thread Ned Batchelder
In the docs for ImageDraw (http://www.pythonware.com/library/pil/handbook/imagedraw.htm), the example includes "del draw". I don't understand why that line is necessary, since when the variable goes out of scope, the object will be deleted. But in our unit tests, we had a problem with memory

Re: [Image-SIG] How to create a new RGB image from an mxnx3 numpy array

2008-10-04 Thread Ned Batchelder
. Thanks again. ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig -- Ned Batchelder, http://nedbatchelder.com ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/m

Re: [Image-SIG] Converting a binary file to ascii

2008-09-03 Thread Ned Batchelder
esktop\\lena.ppm") a=infile.readline() b=infile.readline() c=infile.readline() d=infile.readline() z=b2a_uu(d) print z This script gave me some random absurd data as output. Plz help ___ Image-SIG maillist - Image-SIG@python.org http://mail.pyth

Re: [Image-SIG] Filtering out all but black pixels for OCR

2008-07-02 Thread Ned Batchelder
data[x+y*xdim] = white img.save("sample-filtered.png") ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig -- Ned Batchelder, http://nedbatchelder.com ___ Image-SIG

Re: [Image-SIG] bold and italics of ttf fonts

2008-05-16 Thread Ned Batchelder
an.net/14091782/Screenshot-1.png Is there a solution for pil to modify ttf fonts to bold or italics? Or is this impossible? Stani http://photobatch.stani.be ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-si

Re: [Image-SIG] ImageDraw questions.

2008-03-18 Thread Ned Batchelder
, Kwang Yul Seo ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig -- Ned Batchelder, http://nedbatchelder.com ___ Image-SIG maillis

[Image-SIG] Help with building on Windows?

2008-02-03 Thread Ned Batchelder
and so on. I don't understand them. Each time I try a new set of instructions, it points me to another piece of software I don't think I have, and don't know how to get. I feel like a total noob. Can someone help? --Ned. -- Ned B

[Image-SIG] Fix for left bearing of first character in a string

2008-02-02 Thread Ned Batchelder
dex = FT_Get_Char_Index(self->face, ch); if (kerning && last_index && index) { FT_Vector delta; FT_Get_Kerning(self->face, last_index, index, ft_kerning_default, &delta);

[Image-SIG] Truly transparent text with PIL

2008-01-30 Thread Ned Batchelder
I know this is a subject that comes up occasionally on this list, so I thought readers would be interested in how to make truly transparent text with PIL: http://nedbatchelder.com/blog/200801/truly_transparent_text_with_pil.html --Ned. -- Ned Batchelder, http://nedbatchelder.com

Re: [Image-SIG] Interesting Bounding box calculation

2007-01-17 Thread Ned Batchelder
ce. I want to understand. Can you explain? --Ned. Scott David Daniels wrote: Ned Batchelder wrote: OK, here's some code, and some output After looking, and doing a bit of experimenting, here is a surprising drawing: import Image, ImageDraw, ImageFont def paints(f

Re: [Image-SIG] Clipped text, still.

2007-01-16 Thread Ned Batchelder
e drawing. Is this not something other people are seeing? --Ned. Scott David Daniels wrote: Ned Batchelder wrote: I tried installing 1.1.6, mostly to see the improvements in clipped text. PIL 1.1.5 would clip pieces of text ... and wrap those pixels So "joe" might lose par

Re: [Image-SIG] PIL 1.1.6 eval function

2007-01-14 Thread Ned Batchelder
IG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig -- Ned Batchelder, http://nedbatchelder.com ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig

Re: [Image-SIG] Clipped text, still.

2007-01-14 Thread Ned Batchelder
In this case, there is no clipping boundary, and there are plenty of pixels to accommodate the extremeties of the letters. The wrapping has been fixed, but the clipping still occurs. Is this true or not? --Ned. Scott David Daniels wrote: Ned Batchelder wrote: I tried installing 1.1.6

[Image-SIG] Clipped text, still.

2007-01-09 Thread Ned Batchelder
pped (like the bottoms of g's). I'm running on Windows, Python 2.4, PIL 1.1.6 installed from binaries, using Georgia font. --Ned. -- Ned Batchelder, http://nedbatchelder.com ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.o

Re: [Image-SIG] I'm confused by alpha blending.

2006-03-30 Thread Ned Batchelder
- Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig -- Ned Batchelder, http://nedbatchelder.com ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig

Re: [Image-SIG] I'm confused by alpha blending.

2006-03-30 Thread Ned Batchelder
appens what happens did you get anywhere with this ? ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig -- Ned Batchelder, http://nedbatchelder.com __

[Image-SIG] I'm confused by alpha blending.

2006-03-21 Thread Ned Batchelder
ably. Is there something I am doing wrong? -- Ned Batchelder, http://nedbatchelder.com ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig