📄 pixmapgen.pl
字号:
#!/usr/bin/perluse strict;## a short perl script to convert (almost) any pictures into WBMP pictures## Kalle Marjola for WapIT Ltd. 1999## USAGE: ./pixmapgen.pl SOURCE >TARGET### note: change following strings if needed to#my $temp_target = "/tmp/pmgen_tmp.mono"; # the program for mono->WBMPmy $converter = "./test_wbmp"; # temporary filemy $source = $ARGV[0];my $retval = `convert -verbose -monochrome $source $temp_target`;my ($width, $height) = ($retval =~ /$temp_target (\d+)x(\d+)/s);print `$converter $temp_target $width $height`;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -