-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem with fetching barcode #3
Comments
Does 123.jpg exist ? |
jup... any idea? |
Can you try passing realpath ("123.jpg") as the image? Might be a problem with relative path |
With the latest commit 'make test' shows following:
|
Ok I'll recompile and test again... |
Still getting the same error:
my test script: $image = new ZBarcodeImage();
var_dump($image->read("/home/test/public_html/public/ean13.jpg"));
echo "-----------------------------\n";
$scanner = new ZBarcodeScanner();
var_dump($scanner->scan($image));
$info = $scanner->scan($image, 0, true);
echo gettype($info[1][0]['location']) . "\n";
/* Try to scan empty object */
$image->clear();
try {
var_dump($scanner->scan($image));
} catch (ZBarCodeException $e) {
echo "Got exception";
} this is the output of make test
|
Two questions: a) Can you provide ean13.jpg ? |
I noticed this error: Warning: PHP Startup: Unable to load dynamic library '/php-zbarcode/modules/zbarcode.so' - /php-zbarcode/modules/zbarcode.so: undefined symbol: phpi_get_le_gd in Unknown on line 0 I use php 5.4.10 |
Can you try compiling php-zbarcode '--without-zbarcode-gd' and see if that helps? |
now i am getting this error: Warning: PHP Startup: Unable to load dynamic library '/php-zbarcode/modules/zbarcode.so' - /php-zbarcode/modules/zbarcode.so: undefined symbol: php_imagick_get_class_entry in Unknown on line 0 |
hmmm, --without-zbarcode-imagick might help |
mmm, with ./configure --disable-zbarcode-imagick --disable-zbarcode-gd The test passes:
But when I try to use a script in the browser it doesn;t work... |
also if I try commandline it still doesn't work... It is weird that the tests run correctly... |
Did you remember to run make install? |
jup |
That sounds slightly odd because make test should be about the same as running from command-line. |
what php config does the make test use? |
Hi, mkoppanen, can i write a wiki page of zbarcode installation on Mac? The zbarcode.so works perfect on my Mac, thank you so much. |
Sure, go for it |
Fatal error: Uncaught exception 'zbarcodeexception' with message 'Unable to read the image' in '' |
检查 ImageMagick 的 jpeg 支持是否开启. |
Hi I am getting this error on PHP 5.4.10
I am using this code:
I tested with imagick and with gd, gd doesn't throw the error (but also doesnt work). :-(
The text was updated successfully, but these errors were encountered: