Share

BarBara Barcode Library

Tracker: Bugs

5 BarBara throws ImagickException - ID: 1829755
Last Update: Settings changed ( veggivore )

I have tried installing BarBara, but it does not seem to work properly.

I am running Debian Unstable on AMD64 platform.
Php5 + Imagick installed on apache2.

This is the output that I get:


Dictionary Loaded..Image Loaded...

Fatal error: Uncaught exception 'ImagickException' with message 'Can not
process empty wand.' in
/home/bro1/projects/sekretore/aaa/barbara/barcode.php:216
Stack trace:
#0 /home/bro1/projects/sekretore/aaa/barbara/barcode.php(216):
Imagick->getimagepixelcolor(0, 20)
#1 /home/bro1/projects/sekretore/aaa/barbara/barcode.php(173):
BarScan->isMarked(Object(Imagick), 0, 20)
#2 /home/bro1/projects/sekretore/aaa/barbara/index.php(20):
BarScan->Scan(Object(Imagick), 0, 20, 2048, 0)
#3 {main}
thrown in /home/bro1/projects/sekretore/aaa/barbara/barcode.php on line
216


Linas Jakucionis ( brovienas ) - 2007-11-11 03:30

5

Open

None

Stanley Sufficool

None

None

Public


Comment ( 1 )




Date: 2008-12-21 22:00
Sender: veggivoreProject Admin

Please include the code you are using to initiate the scan. Are you using
PHP4 or PHP5? Did you pass a valid image to the scan function?

The code autodetects what image type you are using if GD2, then defaults
to ImageMagick. So if you are using an invalid image format, then it will
attempt imagemagick and then die.

I admit that this should throw something like "Image is not a GD2 or
ImageMagick object" rather than barfing down the line.


Log in to comment.

Attached File

No Files Currently Attached

Change ( 1 )

Field Old Value Date By
assigned_to nobody 2008-12-21 22:02 veggivore