Page 1 of 1

empty image

Posted: 2010-02-11T13:41:14-07:00
by maxbusko
ImageMagick-6.5.9-0-Q16-windows-dll
php version 5.2.4

Code: Select all

convert –size 80x100 xc:white –draw 'line 10,10 70,90' line.bmp
return empty png image 1x1px

what could be the problem?

Re: empty image

Posted: 2010-02-11T15:29:06-07:00
by fmw42
you have to tell it the fill color for the line

convert -size 80x100 xc:white -fill black -draw "line 10,10 70,90" line.bmp


you also were not using proper hyphens, possible long or short hyphens rather than normal hyphens (at least that is what I found when I cut and pasted your command)