Here's my code, I'm trying to read in an image, and I get a weird error:
I get this error output:
I got the code from here:
and yes, "circle.jpg" does exist in the current directory.
Code:
/usr/bin/perl
use strict;
use warnings;
#use Test::More plan => 1;
use Test::Image;
print "Hello\n";
my $i = Test::Image->new(Image::Imlib2->new("circle.jpg"));
ok($i, "image ok");
I get this error output:
Code:
Hello
Argument "circle.jpg" isn't numeric in subroutine entry at ./recognize.pl line 11.
***** Imlib2 Developer Warning ***** :
This program is calling the Imlib call:
imlib_image_set_has_alpha();
With the parameter:
image
being NULL. Please fix your program.
No image passed at ./recognize.pl line 11
# Looks like your test died before it could output anything.
I got the code from here:
and yes, "circle.jpg" does exist in the current directory.