473,671 Members | 2,250 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2888
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 "PythonMagi ck", 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*****@Anansi Spaceworks.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...@anansi spaceworks.comw rote:
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 "PythonMagi ck", 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...@Anansi Spaceworks.com)
Anansi Spaceworkshttp://www.AnansiSpace works.com

Mar 1 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
7411
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 got PHP 4.3.3 - When I do a phpinfo(); it tells me it was compiled with --with-imagemagick There is no other mention of it anywhere (unlike GD which is listed further down in its own box). Can someone give me a quick one or two liner script that...
3
5621
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 kill the apache procees when I try to run it with this option added, so I have to restart the entire server each time I have to return to the original setting of php.ini
5
3644
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
12832
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 web browser and then save the file. The tricky part is the format of that saved file - it needs to be an EPS format. The image won't be anything terribly exciting - just some basic shapes (boxes, circles, etc) and some text. No fancy colors,...
3
7079
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 recommendation I found during a Google search), but I can not get ImageMagick to work in Php (using exec or system). ImageMagick works from a Windows Command prompt - e.g., convert C:\apache\htdocs\testing\temp_.jpg
5
11225
by: Jim Red | last post by:
Hello Can someone give me an example how to use the Imagemagick - Identity command? Cheers Jim
6
2948
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 now) to install the "MagicWand" PHP api from the imagemagik site. This flatly refused to "make" configure seems ok, I follow the
3
8556
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 bad result. The jpg's quality is very low. Why? I tried to use - quality 100 option but there isn't improvement. I think also that this option isn't active for the pdf conversion to an image format or not? I need some good ideas :D... Thanks to...
0
1988
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 settings, *plat.tif* Pixel Dimensions - 9600x7200 Document Size - 24x18 inches Resolution - 400 px/in File Size - 236 KB
0
8476
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8917
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8670
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7437
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6229
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5696
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4407
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2051
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1809
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.