作者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
1F:→ kdjf:要用for /F 来做 02/09 17:10
2F:→ kdjf:要不然去用用看powershell吧 (不负责的推蔍XD 02/09 17:11
3F:推 xatier: 荐? 02/09 17:58
4F:→ imce:不能用perlmagick直接coding吗?一定要呼叫外部程式? 02/09 20:49