https://github.com/picqer/php-barcode-generator/blob/166ef960be3f19b96dcdf9e11038b335a6aac67a/src/Renderers/JpgRenderer.php#L18 This is not working correctly, you need to specify white color $backgroundColor = new ImagickPixel('rgb(255,255,255)');