I have uploaded Invoice logo with size 200X50 as recommended. However when the invoice is downloaded the image looks blurred and takes the dimensions about 309X79. Any idea why is it taking this size? Where Can I check?

1 Answer 1


Got it working! drawImage function uses points instead of pixels. Changed code in insertLogo function to convert pixels in points.

$width = $image->getPixelWidth()* 72 / 96;
$height = $image->getPixelHeight()* 72 / 96;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.