Jp2 batch converter

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(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);
+
chop($file);
system("jasper --input $file --output $iteration.jp2 -T jp2;");
+
system("jasper --input $file --output $iteration.jp2 -T jp2;");
$iteration++;
+
$iteration++;
}
+
}

Revision as of 06: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++;
	}
Personal tools
General
About This Wiki