?
Solved

Install imagemagick on windows server 2012

Posted on 2014-03-16
10
Medium Priority
?
2,446 Views
Last Modified: 2014-03-18
I am having trouble installing imagemagick on windows server 2012.

I used ImageMagick-6.8.8-8-Q16-x86-dll.exe Win32 dynamic at 16 bits-per-pixel
http://www.imagemagick.org/script/binary-releases.php#windows

I manually registered the ImageMagickObject in it's default location C:\Program Files (x86)\ImageMagick-6.8.8-Q16\

If I use the command line, I can get it to work.  But if I try and use vbs or classic asp and use
Set img = CreateObject("ImageMagickObject.MagickImage.1")

Open in new window

The error is ActiveX Component Can't Create Object ImageMagickObject.MagickImage.1
Code 800A01AD
0
Comment
Question by:Scott Fell,  EE MVE
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
10 Comments
 
LVL 35

Expert Comment

by:Dan Craciun
ID: 39932649
That error can appear on 3 cases, all related to the dll:
1. Missing from the system
2. Not in the system path
3. Not accessible by the system because of security settings

Since you say you run regsvr32, the dll registered correctly and you can use it from cmd.exe, this leaves 2 and 3 for you to check.

HTH,
Dan
0
 
LVL 53

Author Comment

by:Scott Fell, EE MVE
ID: 39932665
Thank you, I have already seen that possible solution.

Do you know for sure that that windows server 2012 supports imagemagick?
0
 
LVL 35

Expert Comment

by:Dan Craciun
ID: 39932667
Did not try it. I do have a Windows Server 2012 test machine, so I'll get back to you in a few minutes.

Although, if it runs from command line it should run from vbs.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 53

Author Comment

by:Scott Fell, EE MVE
ID: 39932670
Thanks Dan
0
 
LVL 35

Assisted Solution

by:Dan Craciun
Dan Craciun earned 1000 total points
ID: 39932696
Tested.

The 32 bit variant did not work.

ImageMagick-6.8.8-8-Q16-x64-dll.exe worked out of the box.

Set img = CreateObject("ImageMagickObject.MagickImage.1") returned SUCCESS.

Make sure you check the last item on the install screen: COM objects for vbs.

Windows Server 2012 Standard, 64 bit.

HTH,
Dan
0
 
LVL 53

Author Comment

by:Scott Fell, EE MVE
ID: 39932741
I posted the wrong code at first.  I have classic asp scripts using this and it should be server.CreateObject
Set img = Server.CreateObject("ImageMagickObject.MagickImage.1")

Open in new window


I uninstalled ImageMagick-6.8.8-8-Q16-x86-dll and reinstalled ImageMagick-6.8.8-8-Q16-x64-dll.exe

I can get CreateObject to work in vbs but in my classic asp I get "ActiveX component can't create object"

With the x86, I did not get the error, but no image manipulation.
0
 
LVL 53

Author Comment

by:Scott Fell, EE MVE
ID: 39932749
>Make sure you check the last item on the install screen: COM objects for vbs.
This is what I get.  Are we seeing the same?
set up
0
 
LVL 35

Expert Comment

by:Dan Craciun
ID: 39932767
Sorry, I was out a bit. Cooking pancakes for my daughter.

Yes, we're seeing the same thing. It was OLE Control, not COM.
I only used options 1,2 and 6.

If it works in vbs but not in asp means you have permissions issues. Make sure asp can reach the install folder for imagemagick.
0
 
LVL 53

Accepted Solution

by:
Scott Fell,  EE MVE earned 0 total points
ID: 39932975
I will leave this open a bit but it appears windows server 2012 is not going to be 100% compatible with imagemagick.
0
 
LVL 53

Author Closing Comment

by:Scott Fell, EE MVE
ID: 39936206
It appears at the current time ImageMagick is not 100% compatible with windows server 2012 and I have to use a different solution for classic asp pages that need image manipulation.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question