2

I use cygwin to convert a pdf file to png. It seems some installation package is missing or there is a problem somewhere

D:\>convert -d 300 foo.pdf bar.png

convert: unrecognized option `-d' @ error/convert.c/ConvertImageCommand/1382.

ar2015
  • 5,558
  • 8
  • 53
  • 110

1 Answers1

2

I went digging around, and I discovered this Stack Overflow post, which was a bit similar to yours. It, in turn, linked to this blog post, which describes using convert on the command line as this:

convert -density 300 -depth 4 lang.font-name.exp0.pdf lang.font-name.exp0.tif

In other words, -d may not be a valid option, partly because there are multiple options which begin with the letter d. Try using the following:

convert -density 300 foo.pdf bar.png

You may have to also specify a depth parameter.

Community
  • 1
  • 1
Tim Biegeleisen
  • 502,043
  • 27
  • 286
  • 360