作者writeman (夕陽武士)
看板Perl
標題[問題] windows command line 有無像linux `(bac
時間Thu Feb 9 15:39:58 2012
windows command line 有無像linux `(backticks)這樣的方式?
因為要使用指令的方式轉換圖片
裝了ImageMagick這套軟體
裡面有圖片註解的功能
例如
convert -font helvetica -fill white -pointsize 16 -draw "text 10,50 'test'" input.jpg output.jpg
但如果要使用中文註解的話就會不成功(出現亂嗎)
convert -font fireflysung.ttf -fill white -pointsize 16 -draw "text 10,50 '測試'" input.jpg output.jpg
看了一些網路上的說明提到必須將中文轉為utf8編碼
使用了perl 的 piconv來測試,網路上的範例
convert -font fireflysung.ttf -fill white -pointsize 16 -draw "text 10,50 `piconv -f big5 -t utf8 -s 測試`" input.jpg output.jpg
但windows command line好像不支援`
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.60.111.131
→ kdjf:要用for /F 來做 02/09 17:10
→ kdjf:要不然去用用看powershell吧 (不負責的推蔍XD 02/09 17:11
推 xatier: 薦? 02/09 17:58
→ imce:不能用perlmagick直接coding嗎?一定要呼叫外部程式? 02/09 20:49