This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Description
I'm using the latest zbar from mercurial on sf.net. I can process a jpeg file using 'zbarimg bigstock-Barcode-18830351.jpg', but the following does not work:
require 'zbar'
jpeg = File.binread('bigstock-Barcode-18830351.jpg')
z = ZBar::Image.from_jpeg(jpeg)
r = z.process
z is #<ZBar::Image:0x00000001c55778 @img=#<FFI::AutoPointer address=0x000000021b8710>>, r is [], and no errors are generated.
I'm using http://www.geeknewscentral.com/wp-content/uploads/2012/12/bigstock-Barcode-18830351.jpg as the test image.