...
- Modify the MyTool_convert.sh using any editor (e.g. vim). A simple example is shown below:
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
#!/bin/sh |
...
#ImageMagick (v6.5.2) |
...
#image |
...
#png bmp foobar |
...
#jpg output_filename=$(basename "$2") |
...
output_format="${output_filename##*.}" |
...
#Output PGM files as ASCII if [ "$output_format" = "pgm" ]; then |
...
convert "$1" -compress none "$2" |
...
else convert "$1" "$2" |
...
fi |
Line 2 : Change ImageMagick to MyTool
...