Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

feralheart's avatar

Imagick background

I converting a pdf to a png and it sets the background to transparent even if I add -background attribute to the command. But I want white background.

My command:

convert myPdf.pdf[0] -alpha Background -background '#FFFFFF' -fill '#FFFFFF' -trim myImage.png

How to modify this command for white background?

0 likes
0 replies

Please or to participate in this conversation.