473,396 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 2866
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Randell D. | last post by:
Folks, I've not used ImageMagick before - I've worked with the gd functions that are pre-compiled in PHP and found some of the limits problematic yet heard better reviews on ImageMagick. I've...
3
by: Joe | last post by:
Hey I have tried to install ImageMagick on my server, but my apache stalls when i try to start it with the following line added to my php.ini file: extension=php_imagick.dll I can't even...
5
by: nawfer | last post by:
for to resize and copy original photos into a new directory and to use for a thumbnail gallery on the web; what is better: GD, Netpbm or imagemagick and why? very thank
1
by: shanergb | last post by:
Hi all. I'm creating a web-based application that uses PHP, MySQL & Apache on a Windows platform. What I need to do is create images on the fly with either GD or ImageMagick, display them on the...
3
by: Chuck Anderson | last post by:
I am trying to use ImageMagick from a Php script running under Windows XP. I have installed the latest version of ImageMagick - 6.2.1-7 and even tried backing up to version 5.5.7 (based on a...
5
by: Jim Red | last post by:
Hello Can someone give me an example how to use the Imagemagick - Identity command? Cheers Jim
6
by: eholz1 | last post by:
Hello Users, I am not sure if this is the place to post an imagemagick question - please advise. I have imagemagick 6.3 installed, runs from command line ok, etc. I have tried (several times...
3
by: femtox77 | last post by:
Hi to all!!! I'm trying to convert a pdf file into an image, for example JPG or PNG format, with ImageMagick. I use the command line. For example: convert header.pdf header.jpg. But I obtain a...
0
by: empiresolutions | last post by:
I am working with a TIF to JPG conversion that will result in the JPG being printed from a web page. My issue is the final JPG image prints VERY blurry. The TIF file that has the following...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.