2016-01-21 59 views
0

我有一個圓形圖像,我需要在上面放一些圓圈文字。使用Imagemagick在圖像上創建CircleText(轉換)

enter image description here

的文字是從那裏預覽是建立與CircleType.js(http://circletype.labwire.ca/)一個jQuery插件的前端。

$("span#text").circleType({ 
     radius: 102, 
     dir: -1 
}); 

我查http://www.imagemagick.org/Usage/fonts/沒辦法解決

目前我得到這樣的結果

http://i.imgur.com/lnhaF23.png

用下面的代碼:

convert \ 
-background none \ 
-font Candice \ 
-pointsize 32 \ 
-fill navy label:\"A short TEST text\" \ 
-rotate 180 \ 
-distort Arc '270 180' \ 
    outfile.png 

,但它是不是有史以來與邊界相同的半徑/距離,b就像第一張圖片中的文字長度一樣。

有人可以幫助我,請

+0

它是如何應該看看嗎?也許在這裏使用黃色背景,這樣我們可以看到圖像的範圍。 –

+1

嘗試調整值以查看所得結果; thr imagemagick選項在這個頁面上:http://www.imagemagick.org/script/command-line-options.php#distort – Bonzo

+0

你有的代碼是在矩形背景上創建一些文本,旋轉180度,然後扭曲它。結果將取決於字體大小和字符數量。 – Bonzo

回答

0

不知道你想要什麼,但你可以看到希望如何從這個那裏。 像這樣也許:

convert \ 
-background yellow \ 
-pointsize 64 \ 
-fill navy label:"A longer test text" \ 
-rotate 180 \ 
-distort arc '270 180' \ 
-trim +repage -resize 400x400 -gravity south -extent 400x400! outfile.png 

enter image description here

+0

不是什麼我需要,你用我的壞轉換與'旋轉180 - 旋轉弧'270 180''這是一個例子imagemagick頁面 – HQ5

+0

你調整後的圖像添加文字,然後字體大小不正確 - 感謝您的幫助 – HQ5

+0

對不起,我還是不明白你想要什麼:-)你說你想要400x400,但是你已經發布了一張897x757的圖像,背景清晰,這樣的程度不容易辨別。 –

相關問題