You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with some drawable as background image, i have an error divide by zero : System.err: java.lang.ArithmeticException: divide by zero System.err: at com.github.sumimakito.awesomeqr.AwesomeQRCode.getDominantColor(AwesomeQRCode.java:377) System.err: at com.github.sumimakito.awesomeqr.AwesomeQRCode.render(AwesomeQRCode.java:116) System.err: at com.github.sumimakito.awesomeqr.AwesomeQRCode.create(AwesomeQRCode.java:92) System.err: at com.github.sumimakito.awesomeqr.AwesomeQRCode.access$700(AwesomeQRCode.java:22) System.err: at com.github.sumimakito.awesomeqr.AwesomeQRCode$Renderer$1.run(AwesomeQRCode.java:526)
The text was updated successfully, but these errors were encountered:
I think the issue may be caused by a background image with no pixels satisfying the statement r<200 && g<200 && b<200, which is used for computing the dominant color without involving too much "light" colors since the foreground and background color of a QR code should not be quite similar.
Hi,
with some drawable as background image, i have an error divide by zero :
System.err: java.lang.ArithmeticException: divide by zero System.err: at com.github.sumimakito.awesomeqr.AwesomeQRCode.getDominantColor(AwesomeQRCode.java:377) System.err: at com.github.sumimakito.awesomeqr.AwesomeQRCode.render(AwesomeQRCode.java:116) System.err: at com.github.sumimakito.awesomeqr.AwesomeQRCode.create(AwesomeQRCode.java:92) System.err: at com.github.sumimakito.awesomeqr.AwesomeQRCode.access$700(AwesomeQRCode.java:22) System.err: at com.github.sumimakito.awesomeqr.AwesomeQRCode$Renderer$1.run(AwesomeQRCode.java:526)
The text was updated successfully, but these errors were encountered: