image
image
Ticket Options
Question Details
TICKET ARCHIVE -> Imagemagick On Mac Os 10.3.9
jpmuller - Aug 20, 2005 - 1:08 pm
image
image
On http://www.macosx.com/content/faq.ph...agemagick.html

a method is suggested for getting an installation to work on Mac OS 10.3.9 as the latest version appears to be optimised for Tiger rather than Panther (10.3.9).

I was able to install "fink" as it suggests, albeit only using Terminal (and NOT X11).

When I first tried to run
sudo fink scanpackages; sudo fink index

I get the error msg
/usr/libexec/gcc/darwin/ppc/3.3/cc1plus is not executable!
I keep getting this msg although after I used the command
sudo apt-get update ; sudo apt-get install fink
it did appear to download several Packages.

I then tried the last command receommended at the above URL and get
udo apt-get install imagemagick
it installed 9 packages, one of which appears to be an older version of imagemagick
Get:9 http://bindist.finkmirrors.net 10.3/release/main imagemagick 5.5.1-23 [17.6MB]

I get
......
Setting up imagemagick (5.5.1-23) ...

I am in the /bin directory in which I gunzip/tar - xvf the original ImageMagick-6.2.3

but everytime I try to type an ImageMagick command, such as
convert
tcsh: convert: Command not found.

It also cant find
export OR declare

I suspect this is something to do with the fact that I am unfamiliar with tcsh as I normally a csh user.

Any pointers would be most appreciated
Thanks in advance
Peter

macbri - Aug 20, 2005 - 8:49 pm
image
image
Hi Peter -

So if you installed the newer version of ImageMagick in /bin, can you see the programs in that directory? In a terminal, if you do for example:

ls /bin

Do you see commands such as "convert" etc., or do you see an ImageMagick directory, under which you find these commands (for example, /bin/ImageMagick/bin/convert).

In either case, whataver directory you see the 'convert' command needs to be added to your path. I think you're using tcsh right? So if you have a file in home directory (.cshrc) add the following line, or create the file if you don't have it:

set path = ($path /bin/ImageMagick/bin)

(or whataver the full directory path is). Save the file, open a new terminal and you should be all set.

I hope this helps!

- Brian

--------
Brian S.
MacOSX.com Technical Support
brian@macosx.com
jpmuller - Aug 22, 2005 - 6:46 am
image
image
Dear Brian
Thanks for your suggestions - it looks like I can now run "convert" without it complaining that it cant find the command.

However, I have a new problem and would therefore like to ask for your help again.

It appears that "fink" did install a previous version (5.5.1)and overwrote the newer one (6.2.3). I dont know if this makes a difference but when I try the recommended test command

convert logo:logo.jpg
(*.gif isnt there), it just repeats the list of flags for ImageMagick

I checked and the file does exist in
/Applications/ImageMagick-6.2.3/share/doc/ImageMagick-6.2.3/images

Any further suggestions please
Thanks in advance
Peter
macbri - Aug 22, 2005 - 8:16 am
image
image
Hi Peter -

First off, Fink installs everything in /sw. So it won't have overwritten your newer version of imagemagick which is in /Applications/ImageMagick-6.2.3. The problem there is your .cshrc sets up your path such that /sw/bin appears before /Applications/ImageMagick-6.2.3/bin. The line that reads:

test -r /sw/bin/init.csh && source /sw/bin/init.csh

changes your path so that /sw/bin is the first thing on it. So make sure you change your .cshrc file such that the line I gave you appears at the END of your .cshrc file (after the line for fink), and change the order around so it looks like this:

set path = (/Applications/ImageMagick-6.2.3/bin $path)

This will make sure the new version appears on your path first. You can confirm this by opening a new terminal (after editing the .cshrc file) and typing the command:

echo $path

As to the second part of your question, to run the convert command you need to provide an input file and an output file like this:

convert logo.png logo.jpg

FInally, the convert command (like most unix-type commands) needs to either (a) have the input file in the current directory where you run the command, or (b) be provided with the full path to the input file. So for your example you could copy the image file to your current directory like this:

cp /Aplications/ImageMagick-6.2.3/share/doc/ImageMagick-6.2.3/images/logo.png .

Then you can convert it to jpg format as described above:

convert logo.png logo.jpg

I hope this helps! If you have any other questions about this let me know.

- Brian
--------
Brian S.
MacOSX.com Technical Support
brian@macosx.com

IF THIS IS YOUR QUESTION AND YOU WISH TO RESPOND, LOGIN HERE FIRST.


Search Engine Optimization by vBSEO 3.3.0 RC1