An ImageObject as support to generate barcodes. fe: https://drawbot.com/content/image/imageObject.html#drawBot.context.tools.imageObject.ImageObject.code128BarcodeGenerator im = ImageObject() im.code128BarcodeGenerator((170, 32), message=b"hello world", quietSpace=0) image(im, (10, 10)) Im making an issue to have the size argument optional.