ImageMagick with MAMP 4 - mac mojave
up vote
0
down vote
favorite
I am trying to install ImageMagick for MAMP 4.
My php version is: 7.1.19
I went to applications/MAMP/bin/php/php7.1.12/conf/php.ini
and changed this line ;extension=imagick.so
to extension=imagick.so
.
I also have a php folder in there of php7.2.1
so I did the above change there too. I restarted MAMP.
After doing that phpinfo told me that ImageMagick is present:
However when I try to run a line of code like this:
header('Content-type: image/jpeg');
$im = new Imagick("test.png");
I received the error localhost is unable to handle this request
, if I remove these lines of code then the page loads fine.
I have also installed ImageMagick, imagemagick 7.0.8-14 is already installed and up-to-date
.
php imagemagick mamp php-7 imagick
add a comment |
up vote
0
down vote
favorite
I am trying to install ImageMagick for MAMP 4.
My php version is: 7.1.19
I went to applications/MAMP/bin/php/php7.1.12/conf/php.ini
and changed this line ;extension=imagick.so
to extension=imagick.so
.
I also have a php folder in there of php7.2.1
so I did the above change there too. I restarted MAMP.
After doing that phpinfo told me that ImageMagick is present:
However when I try to run a line of code like this:
header('Content-type: image/jpeg');
$im = new Imagick("test.png");
I received the error localhost is unable to handle this request
, if I remove these lines of code then the page loads fine.
I have also installed ImageMagick, imagemagick 7.0.8-14 is already installed and up-to-date
.
php imagemagick mamp php-7 imagick
2
You need to tell PHP that the Imagick namespace is built-in with a back slash:$im = new Imagick("test.png");
Note back slash before Imagick
– Jamie_D
Nov 10 at 13:42
Possible duplicate of How to get useful error messages in PHP?
– miken32
Nov 10 at 18:56
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to install ImageMagick for MAMP 4.
My php version is: 7.1.19
I went to applications/MAMP/bin/php/php7.1.12/conf/php.ini
and changed this line ;extension=imagick.so
to extension=imagick.so
.
I also have a php folder in there of php7.2.1
so I did the above change there too. I restarted MAMP.
After doing that phpinfo told me that ImageMagick is present:
However when I try to run a line of code like this:
header('Content-type: image/jpeg');
$im = new Imagick("test.png");
I received the error localhost is unable to handle this request
, if I remove these lines of code then the page loads fine.
I have also installed ImageMagick, imagemagick 7.0.8-14 is already installed and up-to-date
.
php imagemagick mamp php-7 imagick
I am trying to install ImageMagick for MAMP 4.
My php version is: 7.1.19
I went to applications/MAMP/bin/php/php7.1.12/conf/php.ini
and changed this line ;extension=imagick.so
to extension=imagick.so
.
I also have a php folder in there of php7.2.1
so I did the above change there too. I restarted MAMP.
After doing that phpinfo told me that ImageMagick is present:
However when I try to run a line of code like this:
header('Content-type: image/jpeg');
$im = new Imagick("test.png");
I received the error localhost is unable to handle this request
, if I remove these lines of code then the page loads fine.
I have also installed ImageMagick, imagemagick 7.0.8-14 is already installed and up-to-date
.
php imagemagick mamp php-7 imagick
php imagemagick mamp php-7 imagick
edited Nov 10 at 13:43
asked Nov 10 at 13:38
Otto
1178
1178
2
You need to tell PHP that the Imagick namespace is built-in with a back slash:$im = new Imagick("test.png");
Note back slash before Imagick
– Jamie_D
Nov 10 at 13:42
Possible duplicate of How to get useful error messages in PHP?
– miken32
Nov 10 at 18:56
add a comment |
2
You need to tell PHP that the Imagick namespace is built-in with a back slash:$im = new Imagick("test.png");
Note back slash before Imagick
– Jamie_D
Nov 10 at 13:42
Possible duplicate of How to get useful error messages in PHP?
– miken32
Nov 10 at 18:56
2
2
You need to tell PHP that the Imagick namespace is built-in with a back slash:
$im = new Imagick("test.png");
Note back slash before Imagick– Jamie_D
Nov 10 at 13:42
You need to tell PHP that the Imagick namespace is built-in with a back slash:
$im = new Imagick("test.png");
Note back slash before Imagick– Jamie_D
Nov 10 at 13:42
Possible duplicate of How to get useful error messages in PHP?
– miken32
Nov 10 at 18:56
Possible duplicate of How to get useful error messages in PHP?
– miken32
Nov 10 at 18:56
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53239531%2fimagemagick-with-mamp-4-mac-mojave%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2
You need to tell PHP that the Imagick namespace is built-in with a back slash:
$im = new Imagick("test.png");
Note back slash before Imagick– Jamie_D
Nov 10 at 13:42
Possible duplicate of How to get useful error messages in PHP?
– miken32
Nov 10 at 18:56