I tried to convert PDF to PNGs

$ convert linkedList.pdf -quality 300 output.png
convert: profile 'icc': 'RGB ': RGB color space not permitted on grayscale PNG `output.png' @ warning/png.c/MagickPNGWarningHandler/1744.

Should I ignore the prompts?

I want best most quality PNGs.

  • Which is your version of ImageMagick? (convert -version) Dec 17, 2018 at 22:22
  • I have the same issue, but it works correctly
    – ZiTAL
    Dec 20, 2018 at 11:57

1 Answer 1


I found a solution to get rid of the warning: Error in converting a PDF to a PNG in ImageMagick

convert linkedList.pdf -quality 300 -colorspace RGB output.png

With the PDF I used the resulting images look the same, whether I use the colorspace option or not. The result image with the colorspace option has a slightly larger file size, 16 Bytes in my case.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .