rlm@1: @rr = glob('*.jpg'); rlm@1: rlm@1: $" = "\n"; rlm@1: rlm@1: print "@rr\n"; rlm@1: rlm@1: #@rr = @rr[0]; rlm@1: for $t(@rr) rlm@1: { rlm@1: rlm@1: $t =~ m/(.*)\.jpg/; rlm@1: $name = $1; rlm@1: rlm@1: rlm@1: print "convert", " $name.jpg -resize 630x360 ../display/$name.jpg\n"; rlm@1: `convert $name.jpg -resize 630x360 ../display/$name.jpg`; rlm@1: print "convert", " $name.jpg -resize 280x160 ../thumbnails/$name.jpg\n"; rlm@1: `convert $name.jpg -resize 280x160 ../thumbnails/$name.jpg` rlm@1: rlm@1: rlm@1: rlm@1: rlm@1: }