Any Experience of ImageMagick ?

  • Thread starter Thread starter *Kia*
  • Start date Start date
  • Tags Tags
    Experience
AI Thread Summary
The discussion revolves around using ImageMagick to create a birthday ticker through a Perl CGI script. The user is facing challenges in compositing images and has found the official documentation unhelpful. They clarify that their intention is to use ImageMagick from a script rather than its GUI or command line interface. Suggestions include using Perl's system() function to execute ImageMagick commands constructed as strings within the script. The conversation also touches on the use of PerlMagick, which is bundled with Windows binaries, as a potential solution for more complex tasks. There are concerns about compatibility between PerlMagick and ActivePerl, particularly regarding installation methods and version compatibility. The user expresses frustration with errors encountered, such as image not defined or blank outputs, indicating a possible oversight in their setup or command usage.
*Kia*
Gold Member
Messages
18
Reaction score
0
Any Experience of "ImageMagick"?

I am *trying* to program a cgi script using perl.
The purpose of which is to create a "birthday ticker" (often seen in sigs on forums)

I have been attempting to use image magick to composite the to images (the rule and slide), however, I am having issues with getting this to work.
I have tried the imagemagick site and documentation however this appears to be about as much use as a chocolate tea pot.

Any insight would be greatly appreciated.
 
Computer science news on Phys.org
Cheers hon, but I am trying to use it from a script not from the ImageMagick program GUI nor from the command line interface.
I want to call it from a perl script.
 
I don't think anything I suggested concerns the GUI (which I never used).

I only know how to use ImageMagick from the command line... or from a bash/perl script. If you look at the first URL, the stuff in the grey boxes are IM commands to be written on the command line.

In a perl script, I construct a string containing what I would have typed on the command line. Then I'd use perl's system() to invoke that command in the shell. (Note: Listing 1 in the second URL is a bash script.)

If you want to do fancier things, you'll need something like PerlMagick, which is now supposedly bundled with the Windows binaries. Here's a PerlMagick example (off the last URL) http://www.dylanbeattie.net/magick/composite/
 
:cry: Yup I've gone through those scripts on dylanbeattie and quite a bit from ron savage.
the one with the alpha transparency overlay just gives me an image not defined error OR (joy of joys) a blank white page.
I do have perl magick along with image magick and active perl.

I guess I'm probably missing something really simple and obvious.

thanks much appreciated :smile:
 
Maybe it's a version issue.
What versions are your perlmagick, imagemagick, and active perl?
Did you install from a binary? or from source? (I couldn't find a current complete Windows binary distribution.)

I've hesitated with perlmagick because I'm not sure if it really needs active perl... and if it does, if it interferes with perl on cygwin. I don't have anything compelling me to change my currently working setup... but I'd be interested in getting it to work when I have the time.

Is what you are doing so fancy that you couldn't just use perl to construct command lines passed via system()?
 
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Back
Top