I tested this lib with a large image using GenericMultipleBarcodeReader and GreyscaleLuminanceSource and it throws IllegalArgumentException("This luminance source does not support cropping.").
I read the code and it seems the class already does what looks like cropping in its constructor so I just use it to implement crop() and now the code works correctly, thus the PR.
I tested this lib with a large image using
GenericMultipleBarcodeReader
andGreyscaleLuminanceSource
and it throwsIllegalArgumentException("This luminance source does not support cropping.")
.I read the code and it seems the class already does what looks like cropping in its constructor so I just use it to implement
crop()
and now the code works correctly, thus the PR.Let me know if this isn't the right fix.