I decided to implement barcode generation using Zint instead. This allows me to control the barcode generation and define sizing such as height and scaling.