Unable to Execute Script after Installing ImageMagick v7.0.1
Posted: 2016-05-29T20:38:24-07:00
Hi all,
I'm running Perl v5.20.2 built for MSWin32-x64-multi-thread on a 64-bit Windows Server 2008 R2 Enterprise machine. I had been using PerlMagick installed with the DLLs that came with ImageMagick v6.9.3 without issue, but I can't get the same script to work with the DLLs from v7.0.1.
After further testing, I can't seem to use the "convert" cmd line tool either...
[EDIT] I just checked the "Bugs" forum, and it looks like there were problems with the Windows install wizards; it told you to test the install with "convert" even though that tool is not installed by default, and it also was not installing convert.exe, etc. even when the checkbox was selected. Looks like this should be fixed now[/EDIT]
When I run the script, an error dialogue box titled "perl.exe - Bad Image" pops up with the following message:
I'm not sure why it's referring to a "Win32 application" in the error message... none of these programs are 32-bit.
Line 16 of the script is just loading the module:
I've tried uninstalling and reinstalling, installing different v7.0.1 releases, and reloading the Image::Magick module from CPAN. All have yielded the same results.
Any help is appreciated. Unfortunately, I cannot roll back to the version that worked because of the security vulnerability made public at the start of this month (May 2016).
Thank you very much.
I'm running Perl v5.20.2 built for MSWin32-x64-multi-thread on a 64-bit Windows Server 2008 R2 Enterprise machine. I had been using PerlMagick installed with the DLLs that came with ImageMagick v6.9.3 without issue, but I can't get the same script to work with the DLLs from v7.0.1.
After further testing, I can't seem to use the "convert" cmd line tool either...
Code: Select all
W:\>convert 0001.tif 0001.jpg
Invalid Parameter - 0001.jpg
When I run the script, an error dialogue box titled "perl.exe - Bad Image" pops up with the following message:
After clicking "ok" on the dialogue box, Perl continues with this output to STDERR:C:\Strawberry\perl\site\lib\auto\Image\Magick\Magick.xs.dll is either not designed to run on Windows or it contains an error. Try installing the program again using the original media or contact your system administrator or software vendor for support
Code: Select all
W:\>perl \Scripts\check_imgs.pl 001.tif
Can't load 'C:/Strawberry/perl/site/lib/auto/Image/Magick/Magick.xs.dll' for module Image::Magick: load_file:%1 is not a valid Win32 application at C:/Strawberry/perl/lib/DynaLoader.pm line 193. at \Scripts\check_imgs.pl line 16.
Compilation failed in require at \Scripts\check_imgs.pl line 16.
BEGIN failed--compilation aborted at \Scripts\check_imgs.pl line 16.
Line 16 of the script is just loading the module:
Code: Select all
use Image::Magick;
Any help is appreciated. Unfortunately, I cannot roll back to the version that worked because of the security vulnerability made public at the start of this month (May 2016).
Thank you very much.