Rails + jquerymobile +署名パッドを使用しています(http://thomasjbradley.ca/lab/signature-pad/)
私の問題は、画像に変換することです( http://thomasjbradley.ca/lab/signature-pad/#images )
署名を描いてフォームを送信すると、奇妙なエラーが発生します。
convert.exe: Non-conforming drawing primitive definition `line' @ error/draw.c/DrawImage/3154.
convert.exe: unable to open image `111,9': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.exe: no decode delegate for this image format `111,9' @ error/constitute.c/ReadImage/550.
私のcontroller.rbのコード:
instructions = JSON.load(params[:output]).map { |h| "line #{h['mx']},#{h['my']} #{h['lx']},#{h['ly']}" } * ' '
system "convert -size 198x55 xc:transparent -stroke blue -draw '#{instructions}' signature.png"
https://gist.github.com/branch14/4258871
何かアドバイス?