Page 1 of 1

Best, most used , or supported interface .. (I guess)

Posted: 2011-11-16T18:29:03-07:00
by weedeater64
Greetings all.

Brief background, linux end user for 6 years, programmer not. I tinker a lot, and struggle a lot. I jump around a lot and usually barely scratch the surface. k.

So someone was discussing making a web page where the admin could log in and make changes to a political map, both in text and color.

I set about to see what I could come up with, this is what I came up with.
http://paste2.org/p/1781268
Criticism is welcome.


So then I started thinking of ways to back a web page with that. I intend to have a go at a cgi script, but I want to look at other stuff too.

I've fiddled with both php-imagick and pythonmagick, when I say fiddled, I mean barely barely scratched the surface.

I'm wondering of the interfaces available, especially of the easier ones, which are most used, and have the most user actively discussing them. Couldn't help but notice there are a couple of sub forums here like perlmagick and imagick, but a distinct lack of python and others. Is that due to the popularity of php and the power of perl ?

Re: Best, most used , or supported interface .. (I guess)

Posted: 2011-11-16T21:55:15-07:00
by anthony
PerlMagick and IMagick for PHP were designed specifically for the language. Python however uses the same interface as 'MagickWand'. This is why it is not talked about as much, as you talk about Magick Wand.

The most common interface however is probably the Command line, even when used from PHP. the reason is simple. Lots of examples of use. Typically the command line is easier to develop, any then (if you really need it) you can then convert the step to a more specific API, to reduced the setup and forking of extra processes.

Even this aspect will change as IMv7 is adding co-processing. Running a single 'daemon' "convert-like" command which holds and processes the images under a PHP, shell or other language control, using CLI commands. This should become available next year.

Re: Best, most used , or supported interface .. (I guess)

Posted: 2011-11-20T13:21:29-07:00
by weedeater64
Thanks. I think I'll stick to bash scripts and call them up with 'system' in php.