modified: n.fq
[GalaxyCodeBases.git] / etc / dotransform.sh
blobbfaec43686bff02c0b2ab03550a7de392ef62618
1 #!/bin/bash
3 echo Input "[${1}].png"
5 convert "$1.png" -crop 3146x5674+0+0 -background navy -gravity south -extent 3146x6030 "$1.1.png"
6 convert "$1.png" -crop 3146x3180+0+5674 "$1.2.png"
7 convert "$1.png" -crop 3146x1590+0+8854 "$1.3.png"
9 convert "$1.1.png" -alpha set -virtual-pixel background -background navy \
10 -set option:distort:scale 4 -distort BilinearForward \
11 '0,0,1573,0 3146,0,1574,0 0,6030,681,2010 3146,6030,2467,2010' \
12 -scale 25% \
13 -crop 2400x2010+374+0 \
14 -background white -gravity south -extent 2400x2274 \
15 "$1.t1c.png"
17 convert "$1.2.png" -alpha set -virtual-pixel background -background navy \
18 -set option:distort:scale 4 -distort BilinearForward \
19 '0,0,680,0 3146,0,2466,0 0,3180,374,1060 3146,3180,2772,1060' \
20 -scale 25% \
21 -crop 2400x1060+374+0 "$1.t2c.png"
23 convert "$1.3.png" -alpha set -virtual-pixel transparent \
24 -set option:distort:scale 4 -distort BilinearForward \
25 '0,0,374,0 3146,0,2772,0 0,1590,373,530 3146,1591,2772,530' \
26 -scale 25% \
27 -crop 2400x530+374+0 "$1.t3c.png"
29 convert "$1.t1c.png" "$1.t2c.png" "$1.t3c.png" \
30 -background navy -append +repage \
31 -crop 2400x3600+0+0 "out.$1.png"
33 identify "out.$1.png"