cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to use Imagemagick

yogesh_prabhu
Champ in-the-making
Champ in-the-making
Hi,

I am working with both alfresco EE 3.2r..and now exploring Imagemagick and its features..
I am unable to run the file convert.exe from the command window..
I renamed the file to imconvert.exe..but still its not working..
It runs for a few seconds and then the Microsoft window pops up saying it encountered some errors..


I am following the pdf file http://wiki.alfresco.com/w/images/6/62/Installing_and_Configuring_Alfresco_ECM_Community_Edition_3_2...  which has the following installation instructions for ImageMagick:

Installing ImageMagick
To enable image manipulation in Alfresco, you must install and configure ImageMagick. Alfresco uses
ImageMagick to manipulate images for previewing.
Note: If you installed Alfresco using one of the installation wizards, ImageMagick is already be installed.
1. Verify if ImageMagick is already installed on your system.
You can run the convert command, which is part of ImageMagick and usually located in /usr/
bin.
2. If ImageMagick is not on your system, browse to the ImageMagick download site and install the
appropriate package for your platform.
3. Modify the img.root= and img.exe= properties in the <classPathRoot>/alfrescoglobal.
properties file to point to the ImageMagick root directory.
For example, for Windows:
a. Set the img.root= property to img.root=C:/Alfresco/ImageMagick.
b. Set the img.exe= property to img.exe=C:/Alfresco/ImageMagick/bin/convert.exe.
For Linux:
a. Set the img.root= property to img.root=/ImageMagick.
b. Set the img.exe= property to img.exe=/ImageMagick/bin/convert.exe.
Note: Ensure that you do not include a slash (/) at the end of the path. For example, /
ImageMagick/


Is there any other steps to follow and also after installation how can i use Imagemagick?..its features?

Any kind of suggestions would be of great help..

Thanks in advance..!!
5 REPLIES 5

darryl_staflund
Champ in-the-making
Champ in-the-making
Hi there,

What error message are you getting?

I ran into a related problem a couple of days ago when configuring my version of Alfresco (3.3 Community) to work with ImageMagick 6.6.2 Q16.  It turns out that the binaries for this release of ImageMagick are stored in the top-level ImageMagick directory and not in a '/bin' directory.  The fix was to set:

img.root=c:/imagemagick-6.6.2-q.16
img.exe=c:/imagemagick-6.6.2-q16/convert

instead of:

img.root=c:/imagemagick-6.6.2-q.16
img.exe=c:/imagemagick-6.6.2-q16/bin/convert

in the 'alfresco-global.properties' file.  Note that '/bin' has been removed from the 'img.exe' path.  In my case, I did not append '.exe' to the end of the convert executable name.

Hope this helps.

Darryl

stevegreenbaum
Champ in-the-making
Champ in-the-making
I am having the same problem in v3.3 using Windows XP.  Everything works fine in v3.2.

I receive a windows system error when I run convert.exe from the command line in some scenarios (e.g., if I run convert –version or just convert –help).  There is no useful information in the message, just the usual “error has occurred, do you want to report this to microsoft”.  I can convert an image successfully from the command line, however.  My issue is that when I upload a document into Share, I receive a windows error message every time a new document is uploaded.  If I click OK in the message, the thumbnail is created successfully, but the thumbnail is not visible until I manually refresh the page.  I receive the same popup message during the server startup process.    The log shows the following exit code:

11:25:56,109 DEBUG [org.alfresco.util.exec.RuntimeExec] Execution result:
   os:         Windows XP
   command:    [C:/Alfresco_Dev/Alfresco33/ImageMagick/bin/imconvert.exe, -version]
   succeeded:  true
   exit code:  -1073741819
   out:       
   err:       

The log also shows a successful transformation has occurred for any other Imagemagick step. 

Here is the message that pops up:

Microsoft Visual C++ Runtime
An application has made an attempt to load the C runtime library incorrectly.
C: Alfresco/Imagemagick/bin/imconvert.exe

The manifest file references a file atl90.dll which did not install with the 3.3 installation package.  I found this file on the on imagemagick site, but this did not resolve the problem. 

I also tried pointing my 3.3 installation (img.exe and root) to the versions that worked fine in 3.2 and still receive the same error.

Were you able to resolve the issue?

Update: I installed ImageMagick v6.6.0 which resolved the exit code:  -1073741819 error when I ran a convert -version, but I still receive the Windows error: Microsoft Visual C++ Runtime
An application has made an attempt to load the C runtime library incorrectly.

ankit_yakkundi
Champ in-the-making
Champ in-the-making
hi..
i have installed alfresco enterprise 3.3 on my windows XP. I want to rotate and crop the imange contained in the documents using ImageMagick.I am getting windows error when i start convert.exe.

Can anyone tell me how can i start ImageMagick and use it for solving my needs.

stevegreenbaum
Champ in-the-making
Champ in-the-making
Which error message are you getting?

The install documentation suggests renaming the convert.exe to imconvert.exe since there is another exe with that name.

ankit_yakkundi
Champ in-the-making
Champ in-the-making
Hi..
I am able to to crop,watermark and rotate the image file.But i want to know how can i resize the image file?? Is there any option which can be used for this purpose?? I would also like to know whether i can watermark doc,excel ,pdf or any other document format??? I am interested to watermark pdf file.

I thought an alternative to watermark pdf file ie first i will convert the pdf file into image file then i will add watermark to that image files. But the problem i am facing is that when i try to convert pdf file into image file, only front page of the pdf file is converted.. how can i get other pages of pdf file.

Or is there any other way i can achieve the target.

Any idea or suggestion will be of great help..

Thanks in advance…