CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
ImageMagick and PerlMagick

 



Janie
stranger

Jul 22, 2001, 1:42 AM

Post #1 of 23 (4402 views)
ImageMagick and PerlMagick Can't Post

Hi everyone. Would anybody here know how to install ImageMagick for use with Perl. I'm interested in the version with the PerlMagick directory. I tried a while ago but gave up in frustration. If anyone could help me, or point me to a source of easy reading on this I would be eternally grateful.

Ta, Janie.

map{$,--%(5>>1)^0?push@y,$_:unshift@y,$_}sort(another=>Hacker=>Just=>Perl);for(1&1=>1|0){push@y,shift@y}print"@y"



mhx
Enthusiast / Moderator

Jul 22, 2001, 8:15 AM

Post #2 of 23 (4395 views)
Re: ImageMagick and PerlMagick [In reply to] Can't Post

Hi Janie,

I'm not sure if this is what you're interested in, but here's what I know. If you're using ActivePerl, there's a PPM for Image::Magick available on the ActiveState homepage. It installs just like all other PPMs and runs just fine. You can download this ZIP file and follow the instructions in the README file. Actually, this only tells you to run

Code
ppm install Image-Magick.ppd

If you have some sort of Unix, it should be no problem to compile it yourself from the sources, but I haven't done this because I haven't needed ImageMagick on my Unix machine yet.
Hope this helps.

-- Marcus


Code
s$$ab21b8d15c3d97bd6317286d$;$"=547269736;split'i',join$,,map{chr(($*+= 
($">>=1)&1?-hex:hex)+0140)}/./g;$"=chr$";s;.;\u$&;for@_[0,2];print"@_,"



abstracts
Novice

Jul 22, 2001, 3:40 PM

Post #3 of 23 (4392 views)
Re: ImageMagick and PerlMagick [In reply to] Can't Post

Hello,
I don't know about windows but on Linux or BSD*, you can simply download the tarball, ./configure && make && make install.
I use Debian GNU/Linux and with that (and its derivatives), you simply issue apt-get install perlmagick and you're done!!.

Hope this helps,,,

Aziz,,,



Janie
stranger

Jul 22, 2001, 5:10 PM

Post #4 of 23 (4390 views)
Re: ImageMagick and PerlMagick [In reply to] Can't Post

Hi guys. Thank you both very much for your time, I really do appreciate it.

I forgot to mention that it's the version for Win32 I need first. That's my local system. I'm using ActivePerl. I will also need the UNIX version, but that's for later on after I get it set up on windows98 and windows2kME. I have perl5.005 on the windows98 machine, and perl5.6 on the windows2kME.

Marcus. I clicked your ZIP file and I entered the command 'ppm install Image-Magick.ppd' at the DOS prompt but it didn't work. I think my problem is that I'm useless with command line code! I'm also useless with C jargon which is why this great program is sitting there in my 'c:\ImageMagick-5.3.7' directory laughing at me! It's all there, complete with built in PerlMagick. I just need a dummies tutorial for compiling the source.
I have the free version of the Borland C++ compiler 'bcc32' which I use for compiling my C++ source into executables. Is this what I'de use for compiling ImageMagick?

Once again, thank you both for your time. If you have any further suggestions, please let me know.

Ta, Janie.

map{$,--%(5>>1)^0?push@y,$_:unshift@y,$_}sort(another=>Hacker=>Just=>Perl);for(1&1=>1|0){push@y,shift@y}print"@y"



(This post was edited by Janie on Jul 22, 2001, 4:15 PM)


mhx
Enthusiast / Moderator

Jul 22, 2001, 9:53 PM

Post #5 of 23 (4386 views)
Re: ImageMagick and PerlMagick [In reply to] Can't Post

Hi Janie,

I forgot something important, sorry, so here's again something you should try:

1. Use the Win2K/Perl 5.6 installation (just because 5.6 is the version I've tried with)
2. Extract the ZIP-File to any directory you like. There are two files in it, 'README' and 'Image-Magick.ppd'
3. Using the command prompt, change to the directory that the 'Image-Magick.ppd' file is in (that's what I forgot ;-)
4. Type

Code
ppm install Image-Magick.ppd

5. Now, you should receive a message that the Image-Magick module is being downloaded. Depending upon your internet connection, this may take a while. After downloading, the module is automatically installed. You can quickly check this by typing

Code
perldoc Image::Magick

If you receive some output, at least the docs have been installed successfully, and chances are quite good that the rest works, too.

I'm sorry I can't tell you about compilation of ImageMagick under Windows. My only experience is that most Perl modules compile fine with M$ Visual, but using Borland's tools (which I normally prefer) often causes trouble.

If you still face any problems with my description above, please tell me and I'll try to figure out how to help you.

-- Marcus


Code
s$$ab21b8d15c3d97bd6317286d$;$"=547269736;split'i',join$,,map{chr(($*+= 
($">>=1)&1?-hex:hex)+0140)}/./g;$"=chr$";s;.;\u$&;for@_[0,2];print"@_,"



Janie
stranger

Jul 22, 2001, 11:15 PM

Post #6 of 23 (4385 views)
Re: ImageMagick and PerlMagick [In reply to] Can't Post

Thank you very much Marcus. I'll try it tonight and let you know how I went.

Janie.
map{$,--%(5>>1)^0?push@y,$_:unshift@y,$_}sort(another=>Hacker=>Just=>Perl);for(1&1=>1|0){push@y,shift@y}print"@y"



Janie
stranger

Jul 23, 2001, 2:34 AM

Post #7 of 23 (4374 views)
Re: ImageMagick and PerlMagick [In reply to] Can't Post

Hi Marcus. I'm so sorry to bother you again, but I'm having problems downloading the Image-Magick.zip file from ActiveState. You wouldn't happen to have a copy that you could email to me would you? My address is:

janie.panorum@angelfire.com

Ta, Janie.
map{$,--%(5>>1)^0?push@y,$_:unshift@y,$_}sort(another=>Hacker=>Just=>Perl);for(1&1=>1|0){push@y,shift@y}print"@y"



randor
User

Jul 23, 2001, 1:46 PM

Post #8 of 23 (4368 views)
Re: ImageMagick and PerlMagick [In reply to] Can't Post

ok, i have a question, i would also like to fiddle with image magick, but the server i am using is NOT mine, but one i pay for, i asked them and they said that they do NOT install modules, so my question is: can i just install it into my cgi-bin? or does it have to be in perls path like other modules?

thanks for any help....

I Hope this helps...

perl programmers don't die.. they just start writing a new script.


Janie
stranger

Jul 23, 2001, 3:04 PM

Post #9 of 23 (4363 views)
Re: ImageMagick and PerlMagick [In reply to] Can't Post

Hi Marcus. Thanks for the .zip. I'll get back to you soon to let you know how I went. Yes, I'll reply to this forum because I think the more this facility is publicized, the more popular Perl will become. And also because I know randor is watching. He's the one responsible for getting me back on to this! :)

Ta, Janie.

map{$,--%(5>>1)^0?push@y,$_:unshift@y,$_}sort(another=>Hacker=>Perl=>Just);for(1&1=>1|0){push@y,shift@y}print"@y"



Janie
stranger

Jul 23, 2001, 3:30 PM

Post #10 of 23 (4362 views)
Re: ImageMagick and PerlMagick [In reply to] Can't Post

Hi Marcus. I just tried to extract the .zip file but it's empty. That's probably due to my email account. Could you post a link to it here?

Ever so grateful,
Janie.
map{$,--%(5>>1)^0?push@y,$_:unshift@y,$_}sort(another=>Hacker=>Perl=>Just);for(1&1=>1|0){push@y,shift@y}print"@y"



mhx
Enthusiast / Moderator

Jul 23, 2001, 9:43 PM

Post #11 of 23 (4355 views)
Re: ImageMagick and PerlMagick [In reply to] Can't Post

Hi Janie,

if you have a closer look at one of my previous posts in this thread you'll notice that I've already posted that link ;-) Anyway, here it comes again:

http://www.activestate.com/PPMPackages/zips/6xx-builds-only/Image-Magick.zip

Actually, if this still won't work, I've placed the only relevant file from that zip here as an attachment. If you save this attachment as Image-Magick.ppd (without .txt extension), this should be just as good as downloading and extracting the zip. The other file is just a readme and says the following:

Code
To install this ActiveState PPM package, run the following command 
in the current directory:

ppm install Image-Magick.ppd

Current directory refers to the directory Image-Magick.ppd is located in.
Tell me if you're still facing problems.

-- Marcus


Code
s$$ab21b8d15c3d97bd6317286d$;$"=547269736;split'i',join$,,map{chr(($*+= 
($">>=1)&1?-hex:hex)+0140)}/./g;$"=chr$";s;.;\u$&;for@_[0,2];print"@_,"



Janie
stranger

Jul 23, 2001, 10:00 PM

Post #12 of 23 (4354 views)
Re: ImageMagick and PerlMagick [In reply to] Can't Post

Hi Marcus. When I click on the ActiveState link I just get:

PK "*y2:  Image-Magick.ppd An objected-oriented Perl interface to ImageMagick. Kyle Shorter <magick@wizards.dupont.com> install.ppm PK "*pREADMETo install this ActiveState PPM package, run the following command in the current directory: ppm install Image-Magick.ppd PK "*y2:   Image-Magick.ppdPK "*p :READMEPKr

And when I click on the attachment I get:

An objected-oriented Perl interface to ImageMagick. Kyle Shorter <magick@wizards.dupont.com> install.ppm

I've been to the ActiveState site and tried to download the 5xx build, but I just get a load of machine code. Any idea what's happening?

Ta, Janie.

map{$,--%(5>>1)^0?push@y,$_:unshift@y,$_}sort(another=>Hacker=>Just=>Perl);for(1&1=>1|0){push@y,shift@y}print"@y"



mhx
Enthusiast / Moderator

Jul 23, 2001, 10:58 PM

Post #13 of 23 (4351 views)
Re: ImageMagick and PerlMagick [In reply to] Can't Post

Try right-clicking on the links and choose 'Save Target As...' to save either the zip file or the attachment. Left-clicking will lead to strange results on both files. (I didn't notice this because I usually go the right-clicking way. ;-)

-- Marcus


Code
s$$ab21b8d15c3d97bd6317286d$;$"=547269736;split'i',join$,,map{chr(($*+= 
($">>=1)&1?-hex:hex)+0140)}/./g;$"=chr$";s;.;\u$&;for@_[0,2];print"@_,"



Janie
stranger

Jul 23, 2001, 11:45 PM

Post #14 of 23 (4350 views)
Re: ImageMagick and PerlMagick [In reply to] Can't Post

Hi Marcus. Gottem! :) Thanks Loads. Talk to you later.

Janie.

map{$,--%(5>>1)^0?push@y,$_:unshift@y,$_}sort(another=>Hacker=>Just=>Perl);for(1&1=>1|0){push@y,shift@y}print"@y"



Janie
stranger

Jul 24, 2001, 10:53 PM

Post #15 of 23 (4335 views)
Re: ImageMagick and PerlMagick [In reply to] Can't Post

Hi Marcus. That's it! I'm finished with ImageMagic until they package the whole lot up with Perl and deliver it with an install wizard or something. I don't think I've ever dealt with anything so frustrating before. They have help files which ask you for help with documentation! They have readme files which tell you to read the readme!

Anyway, I'de just like to thank you for your time Marcus, and anyone else who tried. I don't usually give up on things this easily, but I'm just not getting anywhere.

Ta, Janie.

map{$,--%(5>>1)^0?push@y,$_:unshift@y,$_}sort(another=>Hacker=>Just=>Perl);for(1&1=>1|0){push@y,shift@y}print"@y"



mhx
Enthusiast / Moderator

Jul 25, 2001, 2:49 AM

Post #16 of 23 (4330 views)
Re: ImageMagick and PerlMagick [In reply to] Can't Post

Really strange it didn't work for you...
Did you receive any error messages?
I never needed the package before, so I'm not very experienced with it, but I had absolutely no difficulties installing it and using it under Windows 98 with ActivePerl 5.6.0.

-- Marcus


Code
s$$ab21b8d15c3d97bd6317286d$;$"=547269736;split'i',join$,,map{chr(($*+= 
($">>=1)&1?-hex:hex)+0140)}/./g;$"=chr$";s;.;\u$&;for@_[0,2];print"@_,"



Janie
stranger

Jul 25, 2001, 3:26 AM

Post #17 of 23 (4329 views)
Re: ImageMagick and PerlMagick [In reply to] Can't Post

Hi Marcus. Installing Image-Magick.ppd was simple enough, it's the installation of the ImageMagick program from http://www.imagemagick.org/ that eludes me.

I'm sure this could all be done quite quickly with some proper guidance from the vendor. But anyway, I can't see why they can't get together and produce a self installing program.

The program has the PerlMagick directory so it looks as though it's all geared up for Perl programmers. But my lack of experience in this area prevents me from being able to intall it. I mean, I wouldn't mind paying for this if it installed itself. I know a couple of my clients would buy Perl scripts that could do stuff like this.

If you want to give me quote, feel free to do so. I don't expect anyone to mess around for nothing. Later.

Ta, Janie.

map{$,--%(5>>1)^0?push@y,$_:unshift@y,$_}sort(another=>Hacker=>Just=>Perl);for(1&1=>1|0){push@y,shift@y}print"@y"



mhx
Enthusiast / Moderator

Jul 25, 2001, 4:05 AM

Post #18 of 23 (4326 views)
Re: ImageMagick and PerlMagick [In reply to] Can't Post

I'm not 100% sure on this, but I think you don't even need the ImageMagick executable itself. I have installed the binary distribution of ImageMagick about one year ago and I simply copied all files into a directory that was contained in the PATH environment variable. There wasn't really anything to install, just unzipping and moving the files to a location where they are found. I don't have a PerlMagick directory anywhere. And I didn't have to do anything special after installing the Image::Magick package with ppm.
So, have you tried if Image::Magick works? Or does it complain that something's missing? Have you installed the binary distribution of ImageMagick or did you try to build it from the source (which I haven't done before under Windows)?

-- Marcus


Code
s$$ab21b8d15c3d97bd6317286d$;$"=547269736;split'i',join$,,map{chr(($*+= 
($">>=1)&1?-hex:hex)+0140)}/./g;$"=chr$";s;.;\u$&;for@_[0,2];print"@_,"



Janie
stranger

Jul 25, 2001, 5:28 AM

Post #19 of 23 (4320 views)
Re: ImageMagick and PerlMagick [In reply to] Can't Post

Okay. Maybe I'm making this a little more complicated than it really is! As I have just about every version of ImageMagick there is now(!), I'll extract the win2k binary distribution and plonk the lot in one of the $ENV{'PATH'} directories. Then I'll install the Image::Magick module with ppm. Is that correct?

Ta, Janie.

map{$,--%(5>>1)^0?push@y,$_:unshift@y,$_}sort(another=>Hacker=>Just=>Perl);for(1&1=>1|0){push@y,shift@y}print"@y"



mhx
Enthusiast / Moderator

Jul 25, 2001, 5:31 AM

Post #20 of 23 (4319 views)
Re: ImageMagick and PerlMagick [In reply to] Can't Post

At least that's how it worked out for me ;-)
Maybe it works even without the binaries, but I cannot try right now since I cannot access my PC at the moment.

-- Marcus


Code
s$$ab21b8d15c3d97bd6317286d$;$"=547269736;split'i',join$,,map{chr(($*+= 
($">>=1)&1?-hex:hex)+0140)}/./g;$"=chr$";s;.;\u$&;for@_[0,2];print"@_,"



Janie
stranger

Jul 25, 2001, 5:42 AM

Post #21 of 23 (4319 views)
Re: ImageMagick and PerlMagick [In reply to] Can't Post

Thanks Marcus. I had my suspicions about whether I needed the binary from ImageMagick or not because the Image::Magick module is so big. When I first saw the size of it I thought what on earth is it all for!! I didn't know that the actual ImageMagick program is included, (well maybe included). :)

I'll have another play and see what happens. Watch this space!

Janie.

map{$,--%(5>>1)^0?push@y,$_:unshift@y,$_}sort(another=>Hacker=>Just=>Perl);for(1&1=>1|0){push@y,shift@y}print"@y"



Janie
stranger

Jul 26, 2001, 1:43 AM

Post #22 of 23 (4309 views)
Re: ImageMagick and PerlMagick [In reply to] Can't Post

Hey Marcus! You are Down..Town boy! Perl has her white stilettos and red lipstick on tonight! Thank you for all your help. I was actually making heavy work of it by going too deeply into it I suppose. I have it working from the command line. There seems to be some warnings that I have to figure out, but I think I've got enough to get me going for now.

I'll be back to this thread with a summary sometime soon :)

Ta, Janie.

map{$,--%(5>>1)^0?push@y,$_:unshift@y,$_}sort(another=>Hacker=>Just=>Perl);for(1&1=>1|0){push@y,shift@y}print"@y"



randor
User

Jul 26, 2001, 5:30 AM

Post #23 of 23 (4303 views)
Re: ImageMagick and PerlMagick [In reply to] Can't Post

so,

can someone tell me if it is possible to install Perl magick from right in the cgi-bin? or does it have to be in the path of perl? and what about image magick, can that also be installed in the cgi-bin?


thanks for anu help...

I Hope this helps...

perl programmers don't die.. they just start writing a new script.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives