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.