Page 1 of 1

IM installation

Posted: 2010-04-29T19:57:03-07:00
by Ayusman
Hi all,
i am a 1st time user of IM.
I really wanted to know if it's possible to just downloaded zip file "ImageMagick-6.6.1-Q16-windows.zip"
unzip it to a location say c:\ and start using it. Do I need to INSTALL IM on my 32 bit windows machine to work?

I have been getting errors while converting PDF files;
C:\ImageMagick_6.6.1-5_Q16>convert -colorspace RGB m1.pdf m1.jpg
convert: `%s' (%d) "gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitma
p=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pnmraw" -dTextAlphaBits=4 -dGraphics
AlphaBits=4 "-r72x72" "-sOutputFile=C:/DOCUME~1/10154180/LOCALS~1/Temp/magick-sP2O3Sdq" "-fC:/DOCUM
E~1/10154180/LOCALS~1/Temp/magick-EaqRisC9" "-fC:/DOCUME~1/10154180/LOCALS~1/Temp/magick-4omXDq5G" @
error/utility.c/SystemCommand/1982.
convert: Postscript delegate failed `m1.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/6
48.
convert: missing an image filename `m1.jpg' @ error/convert.c/ConvertImageCommand/2970.

AND


C:\ImageMagick_6.6.1-5_Q16>convert -colorspace RGB "m1.pdf" "m1.jpg"
convert: `%s' (%d) "gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitma
p=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pnmraw" -dTextAlphaBits=4 -dGraphics
AlphaBits=4 "-r72x72" "-sOutputFile=C:/DOCUME~1/10154180/LOCALS~1/Temp/magick-3nZ0at2h" "-fC:/DOCUM
E~1/10154180/LOCALS~1/Temp/magick-Z6mPTCns" "-fC:/DOCUME~1/10154180/LOCALS~1/Temp/magick-5r2psZaB" @
error/utility.c/SystemCommand/1982.
convert: Postscript delegate failed `m1.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/6
48.
convert: missing an image filename `m1.jpg' @ error/convert.c/ConvertImageCommand/2970.


AND

C:\ImageMagick_6.6.1-5_Q16>convert "m1.pdf" "m1.jpg"
convert: `%s' (%d) "gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitma
p=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=bmpsep8" -dTextAlphaBits=4 -dGraphic
sAlphaBits=4 "-r72x72" -dUseCIEColor "-sOutputFile=C:/DOCUME~1/10154180/LOCALS~1/Temp/magick-5w1IJi
pT" "-fC:/DOCUME~1/10154180/LOCALS~1/Temp/magick-plC2YZWr" "-fC:/DOCUME~1/10154180/LOCALS~1/Temp/mag
ick-FS9oIR4k" @ error/utility.c/SystemCommand/1982.
convert: Postscript delegate failed `m1.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/6
48.
convert: missing an image filename `m1.jpg' @ error/convert.c/ConvertImageCommand/2970.

C:\ImageMagick_6.6.1-5_Q16>
so I just wanted to make sure I am using IM the right way.

Can any body please help?

Re: IM installation

Posted: 2010-04-29T21:05:50-07:00
by snibgo
If you don't install IM properly, how do you think it knows where to find Ghostscript?

Re: IM installation

Posted: 2010-04-29T21:08:18-07:00
by fmw42
If you want to install the binary, see http://www.imagemagick.org/script/binar ... hp#windows. Otherwise, you must install from source and pre-install any delegates such as ghostscript. see http://www.imagemagick.org/download/www ... ml#windows

Re: IM installation

Posted: 2010-04-30T08:53:29-07:00
by Ayusman
snibgo wrote:If you don't install IM properly, how do you think it knows where to find Ghostscript?
so does this mean only unzipping the "ImageMagick-6.6.1-Q16-windows.zip" to a folder and using it does not work?

the problem is I am going to make a distributable application that uses ImageMagic. If I have to install it, there will be a dependency on creating one. Isn't it?

Thanks for your replies friends.
~Ayusman

Re: IM installation

Posted: 2010-04-30T08:55:12-07:00
by fmw42
so does this mean only unzipping the "ImageMagick-6.6.1-Q16-windows.zip" to a folder and using it does not work?
I don't know about Windows, but in Mac/Linux, this will NOT work. See the install pages I referred to above.

Re: IM installation

Posted: 2010-04-30T09:09:26-07:00
by snibgo
Likewise for Windows. Personally, I don't let the installation change my PATH environment variable because I have multiple versions of IM (Q8 or Q16, old versions, etc) and I want to be explicit about which version I use.

But I always run the installation. If I didn't, I wouldn't expect IM to work properly.
the problem is I am going to make a distributable application that uses ImageMagic
That's fine. The installation for your application must replicate whatever IM installation does.

Re: IM installation

Posted: 2010-04-30T10:40:16-07:00
by Ayusman
fmw42 wrote:If you want to install the binary, see http://www.imagemagick.org/script/binar ... hp#windows. Otherwise, you must install from source and pre-install any delegates such as ghostscript. see http://www.imagemagick.org/download/www ... ml#windows
I followed the instruction and did a build but still get the same error.
C:\IM_6.6.1-5_Q16\ImageMagick-6.6.1\VisualMagick\bin>convert C:\m2.pdf C:\d.tiff
convert: `%s' (%d) "gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitma
p=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pnmraw" -dTextAlphaBits=4 -dGraphics
AlphaBits=4 "-r72x72" "-sOutputFile=C:/DOCUME~1/10154180/LOCALS~1/Temp/magick-jH8xDdb0" "-fC:/DOCUM
E~1/10154180/LOCALS~1/Temp/magick-BDn8CSi1" "-fC:/DOCUME~1/10154180/LOCALS~1/Temp/magick-FfvdS0NE" @
error/utility.c/SystemCommand/1982.
convert: Postscript delegate failed `C:\m2.pdf': No such file or directory @ error/pdf.c/ReadPDFImag
e/648.
convert: missing an image filename `C:\d.tiff' @ error/convert.c/ConvertImageCommand/2970.

C:\IM_6.6.1-5_Q16\ImageMagick-6.6.1\VisualMagick\bin>
Let me try to install IM and see if it does any different.

Thanks a ton guys for the help.
Regards,
Ayusman

Re: IM installation

Posted: 2010-04-30T11:00:00-07:00
by fmw42
If you installed from source, you need to pre install any delegate libraries, such as tif, png, jpg, ghostscript, etc and then recompile IM.
see http://www.imagemagick.org/download/delegates/ but I would look for more current ones.

Re: IM installation

Posted: 2010-04-30T11:35:19-07:00
by Drarakel
Of course you can use the "ImageMagick-6.6.1-Q16-windows.zip" package. (Why should they provide a binary that doesn't work? :wink:) As the description says, the zip file is basically the Q16 static Win32 package - without installer.
@Ayusman: You should have tried this after downloading (as suggested here):
To verify ImageMagick is working properly, type the following in an MS-DOS Command Prompt window:
convert logo: logo.gif
identify logo.gif
imdisplay logo.gif
Then all the basic operations should work. For PDF files however you need also Ghostscript.
After Ghostscript is installed, ImageMagick can call it - by the Ghostscript registry entry (on Windows). But you could also include the Ghostscript directories into your PATH (or edit directly the delegates.xml).

Re: IM installation

Posted: 2010-04-30T13:48:33-07:00
by fmw42
The binary install page says:
If you have any problems, install the Visual C++ 2008 Redistributable Package (x86) or Visual C++ 2008 Redistributable Package (x64). 64-bit Windows requires both packages (x86 & x64).
I don't know if this is relevant for your IM version and install as I am not a Windows user.