469,086 Members | 1,277 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,086 developers. It's quick & easy.

imagemagick

Hy
did anyone manage to work with imahemagick through python. I've been
googling like a crazy for some instalation instructions, but i cant
find anything. please help.

thnx

Mar 1 '07 #1
2 2648
azrael wrote:
Hy
did anyone manage to work with imahemagick through python. I've been
googling like a crazy for some instalation instructions, but i cant
find anything. please help.
There have been a few wrappers for ImageMagick over the last few years.

There was once something called "PythonMagick", for example. However
AFAIK, they are all currently defunct. There was a later version using
Boost, but it apparently required a lot of system resources to compile
for some reason, and I don't think I was able to.

Apparently ImageMagick has gone through a lot of API changes and people
get disgusted with supporting it (?). There is also, of course the
Python Imaging Library (PIL) that competes with it pretty effectively
for most use cases (of course ImageMagick has unparalleled image
conversion support).

If you really want ImageMagick, though, you might want to consider
writing your own wrapper (perhaps using ctypes, now that it is included
in the standard library).

I have used 'popen' to run it as a separate process in the past. The
'subprocess' module would be the smart way to do that today, and that
might be your fastest solution.

Cheers,
Terry
--
Terry Hancock (ha*****@AnansiSpaceworks.com)
Anansi Spaceworks http://www.AnansiSpaceworks.com

Mar 1 '07 #2
i need to use some common filters lik the edge, blur. it was pretty
easy and fast to use python magick. but now as I want to use it with
python, it is impossible. there is the PIL_usm, but also no
installation instrucions.
Is there a way to blur the image using the PIL by a specific radius.

On Mar 1, 4:12 pm, Terry Hancock <hanc...@anansispaceworks.comwrote:
azrael wrote:
Hy
did anyone manage to work with imahemagick through python. I've been
googling like a crazy for some instalation instructions, but i cant
find anything. please help.

There have been a few wrappers for ImageMagick over the last few years.

There was once something called "PythonMagick", for example. However
AFAIK, they are all currently defunct. There was a later version using
Boost, but it apparently required a lot of system resources to compile
for some reason, and I don't think I was able to.

Apparently ImageMagick has gone through a lot of API changes and people
get disgusted with supporting it (?). There is also, of course the
Python Imaging Library (PIL) that competes with it pretty effectively
for most use cases (of course ImageMagick has unparalleled image
conversion support).

If you really want ImageMagick, though, you might want to consider
writing your own wrapper (perhaps using ctypes, now that it is included
in the standard library).

I have used 'popen' to run it as a separate process in the past. The
'subprocess' module would be the smart way to do that today, and that
might be your fastest solution.

Cheers,
Terry

--
Terry Hancock (hanc...@AnansiSpaceworks.com)
Anansi Spaceworkshttp://www.AnansiSpaceworks.com

Mar 1 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Randell D. | last post: by
3 posts views Thread by Joe | last post: by
5 posts views Thread by nawfer | last post: by
1 post views Thread by shanergb | last post: by
3 posts views Thread by Chuck Anderson | last post: by
5 posts views Thread by Jim Red | last post: by
6 posts views Thread by eholz1 | last post: by
3 posts views Thread by femtox77 | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.