Any Experience of ImageMagick ?

  • Thread starter Thread starter *Kia*
  • Start date Start date
  • Tags Tags
    Experience
Click For Summary

Discussion Overview

The discussion revolves around the use of ImageMagick in conjunction with Perl for creating a CGI script intended to generate a "birthday ticker" for forum signatures. Participants share their experiences and challenges with using ImageMagick programmatically rather than through its GUI or command line interface.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Exploratory

Main Points Raised

  • One participant is attempting to use ImageMagick within a Perl CGI script but is encountering issues with image compositing.
  • Another participant provides links to examples and resources related to ImageMagick, though these may not directly address the scripting context.
  • A participant clarifies that their suggestions were not related to the GUI and discusses using command line commands within a Perl script via the system() function.
  • Concerns are raised about potential version compatibility issues between PerlMagick, ImageMagick, and Active Perl, with one participant questioning the necessity of Active Perl for PerlMagick.
  • One participant expresses frustration with errors encountered while trying to implement alpha transparency in their images, indicating they might be missing a simple solution.
  • There is a suggestion that constructing command lines in Perl might be a feasible approach for the participant's needs.

Areas of Agreement / Disagreement

Participants do not appear to reach a consensus on the best approach to use ImageMagick with Perl, as there are multiple perspectives on how to implement the desired functionality and concerns about compatibility and errors remain unresolved.

Contextual Notes

Participants mention various versions of Perl and ImageMagick, as well as installation methods, indicating that these factors may influence the issues being faced. There is also uncertainty regarding the interaction between PerlMagick and Active Perl, particularly in different environments like Cygwin.

*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()?
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
Replies
16
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
15
Views
3K
  • · Replies 7 ·
Replies
7
Views
6K
  • · Replies 3 ·
Replies
3
Views
747
  • · Replies 12 ·
Replies
12
Views
4K