strange Perl/Magick behaviors
Posted: 2012-11-22T11:25:51-07:00
I have an existing Perl/Magick script that I am dusting off and trying to deploy on my new Windows 8 setup.
I installed ActiveState Perl 5.16.1 and ImageMagick-6.8.0-Q16.
I have one script (without Magick) that interacts with the file system and a MySQL database. It appears to behave fine.
My other script reads from the database and manipulates images referenced in the database.
When I run this command:
it produces an error message ($filename = 'D:/Photos/2003/2003-11-28 Anna builds tower of wood/20031128-1349-14.jpg'):
For this, I get no warning, and the image appears to load correctly.
Now, I want to annotate the image, with this line:
This produces a different error:
Any ideas what is going on? It appears to be that Magick isn't compatible with Windows 8 yet.
John
I installed ActiveState Perl 5.16.1 and ImageMagick-6.8.0-Q16.
I have one script (without Magick) that interacts with the file system and a MySQL database. It appears to behave fine.
My other script reads from the database and manipulates images referenced in the database.
When I run this command:
Code: Select all
$err = $image->Read($filename);
Now, on a hunch, I padded the filename with characters at the front:Exception 435: unable to open image `03/2003-11-28 Anna builds tower of wood/20031128-1349-14.jpg': No such file or directory @ error/blob.c/OpenBlob/2638 at generate_images.pl line 75.
Code: Select all
$err = $image->Read('XXXXXXXXXXXX'.$filename);
Now, I want to annotate the image, with this line:
Code: Select all
$err = $image->Annotate(x=>50, y=>$new_height-80, font=>'Times New Roman.ttf', pointsize=>50, fill=>'black', text=>"Hello World");
If I remove the 'text=>"Hello World"' it runs, but of course doesn't write anything on the picture.perl.exe: unable to allocate string `Invalid argument' @ fatal/string.c/CloneString/289.
Any ideas what is going on? It appears to be that Magick isn't compatible with Windows 8 yet.
John