Jp2 batch converter
From OpenSimulator
(Difference between revisions)
(New page: #!/usr/bin/perl $iteration=1; foreach my $file(`ls *.jpg`) { chop($file); system("jasper --input $file --output $iteration.jp2 -T jp2;"); $iteration++; }) |
m |
||
| Line 1: | Line 1: | ||
| − | #!/usr/bin/perl | + | #!/usr/bin/perl |
| − | $iteration=1; | + | $iteration=1; |
| − | + | ||
| − | foreach my $file(`ls *.jpg`) { | + | foreach my $file(`ls *.jpg`) { |
| − | + | chop($file); | |
| − | + | system("jasper --input $file --output $iteration.jp2 -T jp2;"); | |
| − | + | $iteration++; | |
| − | + | } | |
Revision as of 05:59, 20 February 2008
#!/usr/bin/perl
$iteration=1;
foreach my $file(`ls *.jpg`) {
chop($file);
system("jasper --input $file --output $iteration.jp2 -T jp2;");
$iteration++;
}