Transparent bitmap(image) in windows!

2008-04-05 Thread SMALLp
that windows drowns each image in separate window (or something like that) I'm looking for best and easiest solution for this problem. I found something to bind PAINT event to empty function but it doesn't work because of scrolled panel. Please help! Thanks! -- http://mail.python.org/mailman/listinfo

Re: Transparent bitmap(image) in windows!

2008-04-05 Thread SMALLp
this is code that adds image: CODE kartaGif = wx.Image(slike/karta.gif, wx.BITMAP_TYPE_GIF) kartaGif.Rescale(self.sizeX, self.sizeY) kartaGif = wx.BitmapFromImage(kartaGif) mask = wx.Mask(kartaGif, wx.WHITE) kartaGif.SetMask(mask

Understanding bmp image files

2008-04-02 Thread pranav
to convert those into the format as required by the bmp file. Any one, who is into image reading/manipulation, please help. -- http://mail.python.org/mailman/listinfo/python-list

Re: Understanding bmp image files

2008-04-02 Thread Marc 'BlackJack' Rintsch
into numbers, not decimal numbers. Then i perform calculations on those decimal numbers. Now i am unable to convert those into the format as required by the bmp file. Any one, who is into image reading/manipulation, please help. How have you converted the bytes into numbers and why can't you

Re: Understanding bmp image files

2008-04-02 Thread Paul McGuire
calculations on those decimal numbers. Now i am unable to convert those into the format as required by the bmp file. Any one, who is into image reading/manipulation, please help. Here is a link to a *very* crude BMP file utility I wrote a long time ago. (http://www.geocities.com/ptmcg/python

Re: Understanding bmp image files

2008-04-02 Thread Terry Reedy
. Then i perform calculations on those decimal numbers. Now i am | unable to convert those into the format as required by the bmp file. | Any one, who is into image reading/manipulation, please help. I would look into PIL, PyGame, and Numeric/Numpy. -- http://mail.python.org/mailman/listinfo

Re: Understanding bmp image files

2008-04-02 Thread Paul McGuire
the file into decimal numbers, representing the pixel | values. Then i perform calculations on those decimal numbers. Now i am | unable to convert those into the format as required by the bmp file. | Any one, who is into image reading/manipulation, please help. I would look into PIL, PyGame

need a function to create eigenface image

2008-03-19 Thread royG
hi while trying to make an eigenface image from a numpy array of floats i tried this from numpy import array import Image imagesize=(200,200) def makeimage(inputarray,imagename): inputarray.shape=(-1,) newimg=Image.new('L', imagesize) newimg.putdata(inputarray

Image capture from Alacron FastFrame-CB

2008-03-17 Thread phishboh
Hi. I would like to perform some image processing using Python. Can someone please point me in the right direction on how to get images from the framegrabber (Alacron FastFrame-CB)? Is VideoCapture (http://videocapture.sourceforge.net/) the correct way to go? Thanks in advance. -- http

[ANN] PyGtkImageView 1.1.0 -- Image viewer widget for PyGTK

2008-03-13 Thread BJörn Lindqvist
I'm pleased to finally announce PyGtkImageView 1.1.0! Description --- GtkImageView is a simple image viewer widget for GTK+. Similar to the image viewer panes in gThumb or Eye of Gnome. It makes writing image viewing and editing applications easy. Among its features are: * Mouse

Re: image matching algorithms

2008-03-13 Thread Yu-Xi Lim
take a hand drawn sample image and query the database for similar photos. There is even a python implementation for it here: http://members.tripod.com/~edcjones/pycode.html On the histogram method I agree that it won't work partly because of what you say and partly because it is terribly slow

Re: image matching algorithms

2008-03-13 Thread Daniel Fetchinson
sample image and query the database for similar photos. There is even a python implementation for it here: http://members.tripod.com/~edcjones/pycode.html On the histogram method I agree that it won't work partly because of what you say and partly because it is terribly slow since it's

Re: Exctract GIF comment from image

2008-03-12 Thread wingi
On 11 Mrz., 18:39, Guilherme Polo [EMAIL PROTECTED] wrote: 2008/3/11, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi, simple question: ThePILdoes not support reading the optional description in GIF Images. I did a quick thing here, try it and check if it solves the problem for you: Wow -

Re: image matching algorithms

2008-03-12 Thread Daniel Fetchinson
Thanks for the info! SIFT really looks like a heavy weight solution, but do you think the whole concept can be simplified if all I needed was: given a photo, find similar ones? I mean SIFT first detects objects on the image and find similarities, but I don't need the detection part

Re: image matching algorithms

2008-03-12 Thread Yu-Xi Lim
is very general and well into the highly experimental. I've been wishing for such a feature to appear in something like Google Image Search (pick/submit a photo and return similar images found on the web). I'm sure if there's even a practical solution, Google (or MS) would be on it already

Re: image matching algorithms

2008-03-12 Thread Daniel Fetchinson
and well into the highly experimental. I've been wishing for such a feature to appear in something like Google Image Search (pick/submit a photo and return similar images found on the web). I'm sure if there's even a practical solution, Google (or MS) would be on it already. The problem

Re: image matching algorithms

2008-03-11 Thread Daniel Fetchinson
| The various free tools differ by their chosen optimization paths and | their degree of specialization. My preference would be, | | 1. Doesn't really matter how long it takes to compute the N numbers per image Your problem here is that there is really no such thing as 'general features

Re: image matching algorithms

2008-03-11 Thread Daniel Fetchinson
The second thing I'll try (after trying your suggestion) is based on this paper which I found in the meantime: http://salesin.cs.washington.edu/abstracts.html#MultiresQuery In case anyone is interested, it describes a multiresolution querying algorithm and best of all, it has pseudo code for

Exctract GIF comment from image

2008-03-11 Thread wingi
Hi, simple question: The PIL does not support reading the optional description in GIF Images. http://www.pythonware.com/library/pil/handbook/format-gif.htm After some reasearch I could not find a python solution for this, any suggestions? Thanx, Wingi. --

Re: Exctract GIF comment from image

2008-03-11 Thread Miki
), identify -verbose image should have the comments somewhere in the output. There also a python binding to ImageMagick but I have no experience with it. HTH, -- Miki [EMAIL PROTECTED] http://pythonwise.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Exctract GIF comment from image

2008-03-11 Thread Guilherme Polo
2008/3/11, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi, simple question: The PIL does not support reading the optional description in GIF Images. http://www.pythonware.com/library/pil/handbook/format-gif.htm After some reasearch I could not find a python solution for this, any

image matching algorithms

2008-03-10 Thread Daniel Fetchinson
Hi all, There are a number of free tools for image matching but it's not very easy to decipher the actual algorithm from the code that includes db management, GUI, etc, etc. I have my own image database and GUI so all I need is the actual algorithm preferably in pseudo code and not in the form

Re: image matching algorithms

2008-03-10 Thread castironpi
On Mar 10, 1:32 am, Daniel Fetchinson [EMAIL PROTECTED] wrote: Hi all, There are a number of free tools for image matching but it's not very easy to decipher the actual algorithm from the code that includes db management, GUI, etc, etc. I have my own image database and GUI so all I need

Re: image matching algorithms

2008-03-10 Thread Yu-Xi Lim
Daniel Fetchinson wrote: There are a number of free tools for image matching but it's not very easy to decipher the actual algorithm from the code that includes db management, GUI, etc, etc. I have my own image database and GUI so all I need is the actual algorithm preferably in pseudo code

Re: image matching algorithms

2008-03-10 Thread Daniel Fetchinson
There are a number of free tools for image matching but it's not very easy to decipher the actual algorithm from the code that includes db management, GUI, etc, etc. I have my own image database and GUI so all I need is the actual algorithm preferably in pseudo code and not in the form

Re: image matching algorithms

2008-03-10 Thread Yu-Xi Lim
Daniel Fetchinson wrote: Thanks for the info! SIFT really looks like a heavy weight solution, but do you think the whole concept can be simplified if all I needed was: given a photo, find similar ones? I mean SIFT first detects objects on the image and find similarities, but I don't need

Re: image matching algorithms

2008-03-10 Thread Shane Geiger
Daniel Fetchinson wrote: There are a number of free tools for image matching but it's not very easy to decipher the actual algorithm from the code that includes db management, GUI, etc, etc. I have my own image database and GUI so all I need is the actual algorithm preferably in pseudo code

Re: image matching algorithms

2008-03-10 Thread Daniel Fetchinson
There are a number of free tools for image matching but it's not very easy to decipher the actual algorithm from the code that includes db management, GUI, etc, etc. I have my own image database and GUI so all I need is the actual algorithm preferably in pseudo code and not in the form

Re: image matching algorithms

2008-03-10 Thread Terry Reedy
Daniel Fetchinson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | The various free tools differ by their chosen optimization paths and | their degree of specialization. My preference would be, | | 1. Doesn't really matter how long it takes to compute the N numbers per image Your

Image Libraries

2008-03-08 Thread PB
decent image libraries for python? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python CGI Webpage with an Image

2008-03-08 Thread rodmc
Is the cgi script in the same directory? The user's browser looks for the jpg relative to the URL it used to get the page, which in the case of the CGI script is the path to the script, not the path to the html file. No the CGI script is in a different folder, I could move everything to the

Re: Image Libraries

2008-03-08 Thread Ken
. Is there any other decent image libraries for python? I use PIL, and I haven't had any difficulty with alpha channel transparency. But maybe I'm using it for different things than you (blitting PGN(RGBA) antialiased images mostly). What problems are you having specifically? Ken Seehart

Re: Image Libraries

2008-03-08 Thread PB
Maybe I am unaware of the right way to do it, but the only way I can think to draw several shapes of different transparencies is to create an image for each layer and then combine them which seems overly complex. It would be nice to simply be able to specify colors with an alpha value combined (ie

Re: Python CGI Webpage with an Image

2008-03-06 Thread Bryan Olson
? HTML: [...] PIMG SRC=banner.jpg NAME=graphics1 ALIGN=LEFT WIDTH=799 I suspect a server configuration and/or resource placement problem. The image has a relative URL, and the user's browser will look for it on the same path that it used to get the resource served by the cgi script, up to last

Re: Python CGI Webpage with an Image

2008-03-06 Thread rodmc
Hi, Thanks for your very quick response. I have played around a bit more so that both the image and HTML file are in the public_html folder. They are called via python using a relative URL, and have permissions set to 755. Within the HTML file the image is accessed using just banner.jpg

Re: Python CGI Webpage with an Image

2008-03-06 Thread rodmc
Hi, Good point, some code samples is probably required. Please note that for reasons of integration with another system I am not using a templating system. Anyway I have copied them below: Python: f = open(finish.html) doc = f.read() f.close() print doc HTML: !DOCTYPE HTML

Int. J. of Tomography Statistics, Special Issue on Image Processing - Call for papers

2008-03-06 Thread [EMAIL PROTECTED]
(Our apologies for cross-posting. We appreciate if you kindly distribute this information by your co- workers and colleagues.) ** Special issue on Image Processing Gest Editors: João Manuel R. S

Re: Python CGI Webpage with an Image

2008-03-06 Thread Bryan Olson
rodmc wrote: [...] I have played around a bit more so that both the image and HTML file are in the public_html folder. They are called via python using a relative URL, and have permissions set to 755. Within the HTML file the image is accessed using just banner.jpg. The actual page displays

Python CGI Webpage with an Image

2008-03-05 Thread rodmc
Hi, I have a set of CGI scripts set up and in one page (which is stored in an HTML file then printed via a python CGI) there is an image. However the image never displays, can anyone recommend a way round this problem? Kind regards, rod -- http://mail.python.org/mailman/listinfo/python-list

Re: Python CGI Webpage with an Image

2008-03-05 Thread Miki
Hello Rod, I have a set of CGI scripts set up and in one page (which is stored in an HTML file then printed via a python CGI) there is an image. However the image never displays, can anyone recommend a way round this problem? We need more information, can you post a code snippet? error page

cron popen xen-create-image

2008-03-03 Thread Christian Kortenhorst
Hey just wondering could anyone help me Have script that runs through cron but seams to run but xen-create-image goes to end but shoes up errors because some stuff it not being passed. ./grabJob.py # RUN all the Create ENVIRONMNET commands here run=/usr/bin/xen-create-image

how to create eigenface image

2008-02-27 Thread harryos
images,P=pixels in an image avgarray --1XP array containing avg value for each pixel adjustedfaces=facesarray-avgarray adjustedmatrix=matrix(adjustedfaces) adjustedmatrix_trans=adjustedmatrix.transpose() covariancematrix =adjustedmatrix*adjustedmatrix_trans evalues,evect=eigh(covariancematrix) after

how to set image from double values of pixels

2008-02-17 Thread jimgardener
hi i am using PIL to get and set image data.Using image.getdata() i can get a tuple of ints for each pixel. also i can use im.putdata(data) to set pixels . suppose i am given a double value as a pixel value (say 7245654.32456 which i may get from some image processing calc..) and thus i have

Re: Pop-up Menu of a Graphics Image?

2008-02-17 Thread W. Watson
Thanks. I'm just getting started in Python, so probably don't want to go far off the main stream. Don't see Misc. I see things like Presentations, Search this site, ... Mike Driscoll wrote: On Feb 15, 2:28 pm, W. Watson [EMAIL PROTECTED] wrote: I want to allow a user who is looking at a

Re: Pop-up Menu of a Graphics Image?

2008-02-16 Thread Mike Driscoll
Fluffy Saul wrote: On Fri, Feb 15, 2008 at 9:55 AM, W. Watson [EMAIL PROTECTED] wrote: Is there a library that contains a pop-up menu class from a mouse click on a graphics image? -- Wayne Watson (Nevada City, CA) Web Page

Pop-up Menu of a Graphics Image?

2008-02-15 Thread W. Watson
Is there a library that contains a pop-up menu class from a mouse click on a graphics image? -- Wayne Watson (Nevada City, CA) Web Page: speckledwithStars.net -- http://mail.python.org/mailman/listinfo/python-list

Re: Pop-up Menu of a Graphics Image?

2008-02-15 Thread Jon Fluffy Saul
On Fri, Feb 15, 2008 at 9:55 AM, W. Watson [EMAIL PROTECTED] wrote: Is there a library that contains a pop-up menu class from a mouse click on a graphics image? -- Wayne Watson (Nevada City, CA) Web Page: speckledwithStars.net -- http

Re: Pop-up Menu of a Graphics Image?

2008-02-15 Thread W. Watson
[EMAIL PROTECTED] wrote: Is there a library that contains a pop-up menu class from a mouse click on a graphics image? -- Wayne Watson (Nevada City, CA) Web Page: speckledwithStars.net -- http://mail.python.org/mailman/listinfo/python-list

Re: Show Image with WebKit

2008-02-06 Thread Marcos Alcazar
Gabriel, I already tried In ower list in Argentina... I reveived a lot of answers of people who wants to help me, but we can't find the solution to my problem, because of that I'm asking here. Anyway, thank's to try to aproach me to ower community in PyAr. Ah, the thread is Guardar y recuperar

Re: Problem with Image: Opening a file

2008-02-05 Thread mcl
writelineHTML(req, htmlMSG): req.write(htmlMSG + 'BR\n') def createThumb(req, infile, maxwidth, maxheight): import Image import os infile = temp/fred.jpg outfile = temp/fred_th.jpg if infile != outfile: writelineHTML(req, Opening %s % str(infile

Show Image with WebKit

2008-02-05 Thread Marcos Alcazar
Hello to everybody, I'm from Argentina. My problem is the next. I receive in the request one image that i've upload, and I want to show that again in another page, how can i do that? I try this: from WebKit.Page import Page class gestorControl(Page): def actions(self): return

Re: Show Image with WebKit

2008-02-05 Thread Gabriel Genellina
En Tue, 05 Feb 2008 13:36:00 -0200, Marcos Alcazar [EMAIL PROTECTED] escribió: Hello to everybody, I'm from Argentina. [... problem description ...] Thanks, and sorry for my english :) I can't help with your specific problem, but try http://www.python.com.ar/ -- Gabriel Genellina --

Re: Problem with Image: Opening a file

2008-02-04 Thread Graham Dumpleton
, infile, maxwidth, maxheight): import Image import os infile = temp/fred.jpg outfile = temp/fred_th.jpg if infile != outfile: writelineHTML(req, Opening %s % str(infile)) writelineHTML(req, 'img src=%s/img' % infile) # Finds File OK

Problem with Image: Opening a file

2008-02-03 Thread mcl
('headtitleMy Tests: Python/title/head') req.write('body') def writeHTMLTrailer(req): req.write('/body') req.write('/html') def writelineHTML(req, htmlMSG): req.write(htmlMSG + 'BR\n') def createThumb(req, infile, maxwidth, maxheight): import Image import os infile = temp

Image to browser

2008-01-15 Thread danielatdaveschool
Hi, noob here Im using mod_python and apache2 using psp for output of page, i open a file and resize it with the following code % import Image, util fields = util.FieldStorage(req) filename = fields.getlist('src')[0] path = '/var/www/content/' + filename size = 128, 128 im = Image.open(path

Re: Image to browser

2008-01-15 Thread danielatdaveschool
On Jan 16, 12:16 am, [EMAIL PROTECTED] wrote: Hi, noob here Im using mod_python and apache2 using psp for output of page, i open a file and resize it with the following code % import Image, util fields = util.FieldStorage(req) filename = fields.getlist('src')[0] path = '/var/www

Re: Image to browser

2008-01-15 Thread Justin Ezequiel
On Jan 16, 1:19 pm, [EMAIL PROTECTED] wrote: On Jan 16, 12:16 am, [EMAIL PROTECTED] wrote: Im using mod_python and apache2 using psp for output of page, i open a file and resize it with the following code % import Image, util fields = util.FieldStorage(req) filename

Re: Image to browser

2008-01-15 Thread danielatdaveschool
Image, util fields = util.FieldStorage(req) filename = fields.getlist('src')[0] path = '/var/www/content/' + filename size = 128, 128 im = Image.open(path) print im.resize(size, Image.ANTIALIAS) % so for one, I dont think print does much with psp as far as i can tell, i

Pygtk Image Load Problem

2008-01-14 Thread Bowen
Hey I have a simple image load written in Python. Here is a link to the pastebin http://pastebin.com/m490093b3 I am having a problem when loading the full screen images, it is displaying a gray line at the bottom of the image as can be seen in this screen shot http://www.xiano.co.uk

Re: Image/Video Processing in Python

2008-01-11 Thread Tim Roberts
a sec to process a 800 by 600 image). Can anyone who has experience with computer vision help me? Are there any existing algorithms for finding a color in an image and plotting its coordinates? It would help me very much. You're talking about raw number crunching. This is exactly the kind

Image/Video Processing in Python

2008-01-10 Thread [EMAIL PROTECTED]
Hello, I'm trying to work on a project in Python that involves the use of a webcam to track a laser pointer. I found some example code here http://janto.blogspot.com/2006/01/motion-capture-in-python.html, but the problem is that it's quite slow (about a sec to process a 800 by 600 image). Can

Re: Request for help with Image color space conversion

2008-01-06 Thread caca
...where the image data is loaded into a numpy array (1600x1200x3)... One comment: that is a big array, too big for the cache memory. I know that in these cases it makes a difference how many times the slices of the array are loaded and unloaded from RAM onto cache. One issue is that a 2D

Re: Request for help with Image color space conversion

2008-01-05 Thread ttest
Reimplement colorsys.rgb_to_hsv() such that it operates on arrays instead of scalars. Only minor modifications are necessary. -- Robert Kern Thanks! I'll try and see if a newcomer like me can get his head around the array-centric modifications to colorsys. --

Re: Request for help with Image color space conversion

2008-01-05 Thread Robert Kern
ttest wrote: Reimplement colorsys.rgb_to_hsv() such that it operates on arrays instead of scalars. Only minor modifications are necessary. -- Robert Kern Thanks! I'll try and see if a newcomer like me can get his head around the array-centric modifications to colorsys. If you hit any

Request for help with Image color space conversion

2008-01-04 Thread ttest
Hello, I'm working on an image processing project using the Python Imaging Library along with numpy. Right now, I'm trying to build a speedy script for converting whole images between the RGB and the HSV (a.k.a. HSB) color spaces. Unfortunately, the code I've made so far runs dreadfully slow

Re: Request for help with Image color space conversion

2008-01-04 Thread Robert Kern
ttest wrote: Hello, I'm working on an image processing project using the Python Imaging Library along with numpy. Right now, I'm trying to build a speedy script for converting whole images between the RGB and the HSV (a.k.a. HSB) color spaces. Unfortunately, the code I've made so far runs

Re: Extracting files from an ISO image?

2008-01-03 Thread Ant
- I assume you mean that images in e.g. joliet format may not be parsed properly), I'll probably end up extracting the images and caching them on disk on the addition of new iso's by simply mounting the image as Grant pointed out. And it looks like wxPython may have support for icons in an img2py

Extracting files from an ISO image?

2008-01-02 Thread Ant
Hi all, My kids have a bunch of games that have to be run from CD (on Windows XP). Now they're not very careful with them, and so I have a plan. I've downloaded a utility (Daemon Tools) which allows me to mount and unmount virtual CD drives onto an ISO image. This works well, but I want to wrap

Re: Extracting files from an ISO image?

2008-01-02 Thread Jeroen Ruigrok van der Werven
-On [20080102 13:11], Ant ([EMAIL PROTECTED]) wrote: 2) Is there a module out there for extracting icons from a Windows exe? This might be a good start: http://groups.google.com/group/comp.lang.python/browse_thread/thread/be829b454c945a89 -- Jeroen Ruigrok van der Werven

Re: Extracting files from an ISO image?

2008-01-02 Thread Grant Edwards
On 2008-01-02, Ant [EMAIL PROTECTED] wrote: I've downloaded a utility (Daemon Tools) which allows me to mount and unmount virtual CD drives onto an ISO image. [...] 1) Is there a module out there for extracting files from an ISO? Why not just mount them and then use the normal OS file

Re: Extracting files from an ISO image?

2008-01-02 Thread Rob Williscroft
/cdrecord.html This (with isoinfo.exe from the above) will list all files in an iso image file: CD = path-to-iso import subprocess subprocess.call( [ isoinfo.exe, '-f', '-i', CD ] ) isoinfo.exe also has a switch to extract a file to stdout One problem you may have is daemon tools will mount cd

Re: How to detect if a image file has icc profile embeded?

2007-12-20 Thread hi and hello
On Dec 15, 7:19 pm, has [EMAIL PROTECTED] wrote: On 15 Dec, 02:40, hi and hello [EMAIL PROTECTED] wrote: thx. What OS? windows xp and linux -- http://mail.python.org/mailman/listinfo/python-list

Re: How to detect if a image file has icc profile embeded?

2007-12-20 Thread has
On 20 Dec, 12:09, hi and hello [EMAIL PROTECTED] wrote: On Dec 15, 7:19 pm, has [EMAIL PROTECTED] wrote: On 15 Dec, 02:40, hi and hello [EMAIL PROTECTED] wrote: thx. What OS? windows xp and linux Not my areas of expertise, unfortunately. This might be looking into though:

Re: How to detect if a image file has icc profile embeded?

2007-12-15 Thread has
On 15 Dec, 02:40, hi and hello [EMAIL PROTECTED] wrote: thx. What OS? -- http://mail.python.org/mailman/listinfo/python-list

Python routine decodes enceypted map image format - Program problem.

2007-12-14 Thread Independent
Python programmers may find the application to decoding an encrypted map image format known as Memory Map to produce a standard PNG image file interesting. Someone obviously very well versed in Python and in the intricacies of image files has written a routine to decode originally the UK

How to detect if a image file has icc profile embeded?

2007-12-14 Thread hi and hello
thx. -- http://mail.python.org/mailman/listinfo/python-list

ImageTk.PhotoImage to PIL Image?

2007-12-02 Thread shadowsithe
I can't seem to find a way to convert an Image.Tk PhotoImage to a PIL Image so that I can use the [tt]save[/tt] function. -- http://mail.python.org/mailman/listinfo/python-list

Re: image rendering in python

2007-11-28 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: http://cdnll.i.imagechef.com/ic/templimg2/Shaved%20Head.jpg Do u know how to make such images using PIL using PIL, you can prepare a background image (the head), an overlay layer (properly shaded flesh tones) and a mask (e.g. using ImageDraw and a suitable font

image rendering in python

2007-11-25 Thread mobiledreamers
http://cdnll.i.imagechef.com/ic/templimg2/Shaved%20Head.jpg Do u know how to make such images using PIL or other tools in python thanks a lot for your kind help -- http://mail.python.org/mailman/listinfo/python-list

Re: return image in mod python

2007-11-22 Thread Peter Otten
Abandoned wrote: Hi i have a problem. def showimage(req): from PIL import Image im=Image.open(c:\image-2.jpg) im.thumbnail((800,600), Image.ANTIALIAS) req.sendfile(im) give me some error. How can i return this image witdhout save ? image

Re: Create thumbnail image (jpg/png) of PDF file using Python

2007-11-21 Thread sophie_newbie
On Nov 20, 5:36 pm, sophie_newbie [EMAIL PROTECTED] wrote: Is there any way to do this directly within python? If not is there any other good way to achieve it? Thanks in advance for any help! I think I've solved this problem using a piece of software called imageMagick. Good stuff so it is.

Re: return image in mod python

2007-11-20 Thread Abandoned
On Nov 19, 5:32 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: Abandoned wrote: On Nov 19, 12:36 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: Abandoned wrote: Hi i have a problem. def showimage(req): from PIL import Image im=Image.open(c:\image-2.jpg

Create thumbnail image (jpg/png) of PDF file using Python

2007-11-20 Thread sophie_newbie
Is there any way to do this directly within python? If not is there any other good way to achieve it? Thanks in advance for any help! -- http://mail.python.org/mailman/listinfo/python-list

Re: Create thumbnail image (jpg/png) of PDF file using Python

2007-11-20 Thread Robin Becker
sophie_newbie wrote: Is there any way to do this directly within python? If not is there any other good way to achieve it? Thanks in advance for any help! I have used ghostscript from within python to do this sort of thing. You may get problems if the fonts are too exotic, but otherwise

Re: Create thumbnail image (jpg/png) of PDF file using Python

2007-11-20 Thread [EMAIL PROTECTED]
On Nov 20, 11:36 am, sophie_newbie [EMAIL PROTECTED] wrote: Is there any way to do this directly within python? If not is there any other good way to achieve it? Thanks in advance for any help! Take a look at PIL -- http://www.pythonware.com/products/pil/. Among other things, it allows you

Re: how can i return a image in mod python ?

2007-11-19 Thread Abandoned
: domain.com/a.py/showimage It must show meimagedirectly (no redirect or html) How can i do it ? I'm sorry for my bad english. Kind Regards How about: def showimage(req): req.content_type=image/jpeg # Change to youimagetype req.sendfile(/path/to/image.jpg) returnapache.OK

return image in mod python

2007-11-19 Thread Abandoned
Hi i have a problem. def showimage(req): from PIL import Image im=Image.open(c:\image-2.jpg) im.thumbnail((800,600), Image.ANTIALIAS) req.sendfile(im) give me some error. How can i return this image witdhout save ? -- http://mail.python.org/mailman/listinfo

Re: return image in mod python

2007-11-19 Thread Diez B. Roggisch
Abandoned wrote: Hi i have a problem. def showimage(req): from PIL import Image im=Image.open(c:\image-2.jpg) im.thumbnail((800,600), Image.ANTIALIAS) req.sendfile(im) give me some error. Really? I don't see any error. So there can't be one. Diez

Re: return image in mod python

2007-11-19 Thread Abandoned
On Nov 19, 12:36 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: Abandoned wrote: Hi i have a problem. def showimage(req): from PIL import Image im=Image.open(c:\image-2.jpg) im.thumbnail((800,600), Image.ANTIALIAS) req.sendfile(im) give me some error

Re: return image in mod python

2007-11-19 Thread Diez B. Roggisch
Abandoned wrote: On Nov 19, 12:36 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: Abandoned wrote: Hi i have a problem. def showimage(req): from PIL import Image im=Image.open(c:\image-2.jpg) im.thumbnail((800,600), Image.ANTIALIAS) req.sendfile(im

Re: how can i return a image in mod python ?

2007-11-19 Thread Arnaud Delobelle
On Nov 19, 10:27 am, Abandoned [EMAIL PROTECTED] wrote: [...] Thank you but i have a another problem. def showimage(req): from PIL import Image im=Image.open(c:\image-2.jpg) im.thumbnail((800,600), Image.ANTIALIAS) req.sendfile(im) give me some error. How

Re: how can i return a image in mod python ?

2007-11-18 Thread Arnaud Delobelle
On Nov 18, 6:46 am, Abandoned [EMAIL PROTECTED] wrote: Hi.. I want to show the pictures with mod python directly. def showimage(req): some process... open /var/www/a.jpg and print for example if i open: domain.com/a.py/showimage It must show me image directly (no redirect or html

how can i return a image in mod python ?

2007-11-17 Thread Abandoned
Hi.. I want to show the pictures with mod python directly. ( it support cache and image headers) def showimage(req): some process... open /var/www/a.jpg and print How can i do it ? I'm sorry for my bad english. Kind Regards -- http://mail.python.org/mailman/listinfo/python-list

how can i return a image in mod python ?

2007-11-17 Thread Abandoned
Hi.. I want to show the pictures with mod python directly. def showimage(req): some process... open /var/www/a.jpg and print for example if i open: domain.com/a.py/showimage It must show me image directly (no redirect or html) How can i do it ? I'm sorry for my bad english. Kind Regards

Re: Insert image to a List box

2007-11-16 Thread Matt McCredie
() def list_entry_clicked(*ignore): imgname = L.get(L.curselection()[0]) img.config(image=gifsdict[imgname]) L.bind('ButtonRelease-1', list_entry_clicked) root.mainloop() The exception points to this line as being the issue: for gifname in os.listdir(dirpath

Re: Insert image to a List box

2007-11-16 Thread Matt McCredie
Thanks a lot for your patience. I put the gif file to a folder called fig in my desktop. dirpath = './fig' still got error: Traceback (most recent call last): File 11.py, line 238, in module img.config(image=gifsdict[imgname]) NameError: name 'imgname' is not defined You should

Symposium Image Processing and Analysis within the ICCES'08 USA - Announce Call for Papers

2007-11-16 Thread [EMAIL PROTECTED]
-- Symposium Image Processing and Analysis International Conference on Computational and Experimental Engineering Sciences 2008 (ICCES'08) USA, 17-22 March 2008 http://icces.org/cgi-bin/ices08/pages

Insert image to a List box

2007-11-15 Thread linda.s
(Tkinter.END, gifname) L.pack() img = Tkinter.Label() img.pack() def list_entry_clicked(*ignore): imgname = L.get(L.curselection()[0]) img.config(image=gifsdict[imgname]) L.bind('ButtonRelease-1', list_entry_clicked) root.mainloop() -- http://mail.python.org/mailman/listinfo/python-list

Re: Insert image to a List box

2007-11-15 Thread Matimus
= Tkinter.PhotoImage(file=gifpath) gifsdict[gifname] = gif L.insert(Tkinter.END, gifname) L.pack() img = Tkinter.Label() img.pack() def list_entry_clicked(*ignore): imgname = L.get(L.curselection()[0]) img.config(image=gifsdict[imgname]) L.bind('ButtonRelease-1', list_entry_clicked

Image treshold

2007-11-10 Thread Johny
Can anyone give me an example how to apply a threshold value to an image? (everything above a certain brightness level becomes white, and everything below the level becomes black.) I was told I should use 256-item mapping table and pass it to the point method. But how should the 256-item

<    5   6   7   8   9   10   11   12   13   14   >