How do I install ImageMagick for MinGW on Windows 7?

1

Well... I have already installed MinGW32 (I don't know the version - installed in a folder named Git 2.4.4.2) on Windows 7, and I want to install ImageMagick to run some scripts like the follow:

echo " Creating different dimensions of "$1" ..."

convert $1 -resize 67% dir1/$1
convert $1 -resize 50% dir2/$1
convert $1 -resize 33% dir3/$1
mv $1 dir0/$1

echo " Done"

As far as I searched on Google there is not a clear detailed guide how to install it. I downloaded this ImageMagick version: ImageMagick-i686-pc-mingw32.tar.gz

From the official ImageMagick site guide I go up to the first step Unpack the distribution with this command:

tar xvzf ImageMagick-i686-pc-mingw32.tar.gz

and I get as result a folder ImageMagick-6.8.5. So far so good. But the next step Next configure and compile ImageMagick:

cd ImageMagick-6.8.5
./configure
make

I get bash: ./configure: No such file or directory.

Here is my photo:

Configure fail

This is ls -l results:

Enter image description here

How can I fix this problem?

I have only installed MinGw32, not MSYS (as I read in a not so detailed guide).

Universe

Posted 2016-07-27T19:41:00.197

Reputation: 121

why arent you using the windows version of imagemagick? – Keltari – 2016-07-27T19:52:29.493

the scenario says to use this way, and I want to try this way – Universe – 2016-07-27T19:55:35.923

Do you have a ./configure in that directory? What are it's file permissions? – DavidPostill – 2016-07-27T20:49:17.183

@DavidPostill I edit question and post the screenshot of the ls -l.. Hope this help you – Universe – 2016-07-27T22:03:10.037

Answers

2

I want to install ImageMagick to run some scripts

I download this ImageMagick version ImageMagick-i686-pc-mingw32.tar.gz

Your link (http://www.imagemagick.org/script/binary-releases.php) is a link to the ImageMagick binary releases.

From the official ImageMagick site guide I go up to the first step Unpack the distribution with this command

Your link (http://www.imagemagick.org/script/install-source.php) is a link to the "Install from Source" page.

That page tell you how to build and install from the source.

I get bash: ./configure: No such file or directory.

You downloaded the binary not the source.


I want to install the binary

Go back to the page you download the binary from (http://www.imagemagick.org/script/binary-releases.php).

Then follow the instructions on that page to install the binary you downloaded.


I want to build and install from the source

If you want to build from the source then download the source from the links on http://www.imagemagick.org/script/install-source.php

Then follow the rest of the instruction on that page.

DavidPostill

Posted 2016-07-27T19:41:00.197

Reputation: 118 938

3

if you use MSYS2 just open the mingw-console and type in:

pacman -Syu
pacman -S base-devel
pacman -S mingw-w64-x86_64-toolchain
pacman -S mingw-w64-x86_64-zlib
pacman -S mingw-w64-x86_64-libpng
pacman -S mingw-w64-x86_64-imagemagick

b166er

Posted 2016-07-27T19:41:00.197

Reputation: 31